jquery

Span element change event

Hi! My question is: Does have a span element the inner html change event? I think about I have a span and when the span inner html is changing it will throw an event that I can reach? I would like to use Jquery to bind to this event of span. l. ...

URL external data with jquery.

$(document).ready(function() { var response = $.ajax({ type: "GET", url : "http://www.google.com", async : false, success : function(resp) { alert(resp); } }); }); no out...

How to use jQuery qTip - Simple Example please

Hi, Would appreciate if someone could pls show me a simple example of how to setup and use qTip jquery plugin for a tooltip to display at the bottom-left of where I hover over an image. I've tried following the demos/examples from the site:> qTip but just can't seem to get it working. I am unsure if I need to include the HTML Structur...

Vertical tabs with jquery

any one know how to use vertical tabs with jquery. In my web site i want to use partial views i implemented it with jquery horizontal tabs but i want it with vertical tab as my links are in right side. so any one know the solution plz tel me. I am using asp.net mvc application thanks in advance.. ...

[jQuery] Prepend and Append at the same time

$('.testimonials blockquote p') .prepend('<span class="quo ldquo">&ldquo;</span>') .append('<span class="quo rdquo">&rdquo;</span>'); ...prepends and appends TWICE. How do I prepend ldquo + whatever content inside the p + rdquo? Thanks! ...

how can i load my page faster with $.ajax() or $.post()

i am trying to load database values from 6 - 7 tables on a single page i.e users, their post e.g with $.load(); and it is taking from 15+ seconds to load but i want to load that page from 1-5 seconds ...i know it depends on internet connection speed but how can i do that .... ...

JQuery - Iterate through SELECT options

Hello, I have a SELECT element in HTML. This element represents a drop down list. I'm trying to understand how to iterate through the options in the SELECT element via JQuery. How do I use JQuery to display the value and text of each option in a SELECT element? I just want to display them in an alert() box. Thank you! ...

Why does this code give an error?

$("#main").animate({ display: "block", width: "70%", opacity: 0.4, marginLeft: "0.6in", fontSize: "3em", borderWidth: "10px" } 1500); This is jQuery. I get a "missing ) after arguement list" message. What's wrong? ...

asp.net mvc json 2 times post to the controller

function onTestComplete(content) { var url = '<%= Url.Action("JsonTest","Organization") %>'; $.post(url, null, function(data) { alert(data["name"]); alert(data["ee"]); }); } <% using (Ajax.BeginForm("JsonTest", new AjaxOptions() { HttpMethod = "POST", OnComplete = "onTestComplete"...

JQuery removing '-' character from string

Hi, I hope this question isn't too basic. I have a string "-123445". Is it possible to remove the '-' character from the string? I have tried the following but to no avail: $mylabel.text("-123456"); $mylabel.text().replace('-', ''); Any help would be greatly appreciated. Thanks, Zaps ...

Drupal drag-able blocks issue

Druapl offers great functionality whereby blocks can be dragged up and down to reorder as shown below. However, on a couple of projects I've been working on they have disappeared during development )as shown below) but I have no idea why! It must be something that I am doing wrong but for the life of me I can't work out why. ...

FCKeditor in jQuery ui dialog not working

Hi folks, I'm having serious trouble getting this to work in IE7/8. In FF, everything works as expected. When the user clicks on a certain link, a modal dialog popup is shown. In this dialog, there is a form, which contains one textarea, that is replaced with a FCK instance. The form is loaded from the server using ajax on the clients...

Weird jquery behaviour

I'm trying to achieve something really basic but jquery isn't doing what I expect! I have a div with an id of "stuff". In the css I set the display attribute to "none" with the aim of changing it with jquery. This way the div is hidden unless the user has js enabled. My jquery code is simply $("#stuff").show(); unfortunately this isn...

jQuery indexOf select box manipulation

Hi, I'm trying to figure out how to remove options from a select box when that option has been selected in an adjacent select box. Basically the user has the option to add multiple records here via select boxes, but I want to remove the list of options available to them so that, for example, they can't enter the same value in two select ...

jQuery: Getting value from input array

We have the following form: <form> ... <table width="100%" cellspacing="0" class="datagrid_ppal"> <tbody> <tr> <th scope="row">Area 1 <input name="config_line" type="hidden" value="0,5,50" /></th> <td class="gantt"> </td> <td class="gantt"> </td> <td class="gantt"> ...

Is event.preventDefault cancelling change events?

Hello! I have a certain situation I want to clarify for myself, and I would be glad if anyone has any experience with this issue and is willing to explain it to me. I have a textarea that has a change event handler: textarea.bind('change', function(event){ // do something }); Hypothetically, what if I have some sort of a click ev...

jQuery select an element by multiple css classes

jQuery Class selector works well if you have a single class assigned to an element. What if I assign two classes to an element(Ex: <div class="one two">), how can I find that element if I know these two classes? ...

Using jQuery, how do I way attach a string array as a http parameter to a http request?

I have a spring controller with a request mapping as follows @RequestMapping("/downloadSelected") public void downloadSelected(@RequestParam String[] ids) { // retrieve the file and write it to the http response outputstream } I have an html table of objects which for every row has a checkbox with the id of the object as the valu...

JQuery (1.4.2)/Firefox (3.6.3) - .before and .after not working on div [SOLVED]

I am trying to have a title bar appear when the user clicks on a box. It works perfectly in I.E. 8.0 but not at all in firefox 3.6.3. HTML <html> <head> <script type="text/javascript" src="../jquery-1.4.2.min.js"></script> <script type="text/javascript" src="sample.js"></script> <style type="text/css"> @import url('style.c...

How to trigger an event ONLY if both dropdowns are selected?

I have a dropdown select list on my page of class="TypeFilter". I have a jQuery event that fires when a value in that list is selected. $(".TypeFilter").change(function() { // Extract value from TypeFilter and update page accordingly )); I now have to add another list to the page, and I want to implement functionality which will...