jquery

jQuery plugin only being applied to last declared element

I wrote a jQuery plugin to control animations for several images on the same page. The calls are initialized at the beginning as: $("#image1").anims({top: "240px", left: "300px"}); $("#image2").anims({top: "160px", left: "430px"}); The anims plugin basically applies a bunch of animations on mouseover and mouseout (using hover) based o...

Simultaneously Iterating Over Two Sets of Elements in jQuery

I have a table containing many pairs of text input fields in separate columns. I want to iterate through the input fields in the first column and use those values to set the value of the corresponding input field in the adjacent column. <table> <tr> <td><input type="text" class="left" /></td> <td><input type="text...

Trouble parsing multi-level JSON

I have a chunk of JSON which looks something like: { "map": [ [ "zimbraFeatureCalendarUpsellEnabled", "FALSE" ], [ "zimbraPrefCalendarDayHourStart", "8" ], [ "zimbraFeatureOptionsEnabled", "TRUE" ], [ "zimbraAttachmentsViewInHtmlOnly", "FALSE"...

How can I implement a shopping cart in AJAX using jQuery?

I am in developing a shopping cart. Every Product has a Price and a SubCategory. Product: ID Price Product No ProductName 1 250.5$ esp1 Electronic Machine 2 500.0$ esp2 Scanner A user can choose the product by selecting any of the above Products. There is also a CommonProduct associated with each Product. Com...

problem with tab-selecting in JQuery

Hello all, I have the following problem: I want to create a webpage in which I can use the JQuey tabs both by a side-bar and by the upper button-bar of the Jquery tabs itself. I am using the following code: title here $(document).ready(function(){ $("#datepicker")....

What is my problem with tab-selecting in JQuery?

I want to create a webpage in which I can use the JQuey tabs both by a side-bar and by the upper button-bar of the Jquery tabs itself. My code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta htt...

How do I change the selected item in a dropdown based on user input in a text box?

I have a select dropdown that could possibly contain over 1000 items for a large customer. <select name="location" id="location"> <option value="1">Store# 1257</option> <option value="2">Store# 1258</option> ... <option value="973">Store# 8200</option> <option value="974">Store# 8250</option> <option value="975...

How to create jQuery Tabs out of Markdown

Hi, I'm currently running a PHP based Content-Management-System that generates its HTML content with the help of Markdown Extra. Most of the content is structured by headings and sub-headings which results in a very long page. At the beginning of each page I create a table of contents with the help of a list and Markdown Extra's Header ...

How to insert an image into some html through JQuery?

Howdy Guys, Here is the situation. I've got a standard link like so: <h2><a href="#">Link Title</a></h2> Now, I want to insert a background to make it look like a button, so I add a span with JQuery like so: $(document).ready(function() { $(".post a").wrapInner("<span></span>"); }); (The html for the link can be found here, ...

Ajax call completed event

I need to know if there is any event that fires when an element get completed rendering. I have a div say with id A. Now I am creating and rendering that div with ajax and need to access elements inside div. How can I do it. Tried with $("#A").init(). It is not working. ...

Autocomplete with different values than the title

Hey everyone, I'm trying to make an autocomplete form using jquery, but I've run into an issue. I'm trying to make it so that when a user starts typing in the name of a place that's in our database, it shows them the full name of the place in the autocomplete, but when they click on it, the textbox gets filled with the address of the pl...

How do I use jQuery to ignore case when selecting?

I'm currently attempting to disable a link using the following jQuery selector: $("a[href$=/sites/abcd/sectors]").removeAttr("href"); The problem is that sometimes the href might not always be lower case on the page. When this happens the selector no longer matches. Does anyone know how to get around this? Can I change the behaviour ...

jquery: hide/show something after form submit/page reloads

On my page I have forms which default to .hide() when the page is loaded. These two forms are account creation and login. They are shown to the user once they click the appropriate link (.show()). Obviously, if there is a failure with either form, I'd like for the form to stay open instead of hiding after the page loads from submitting....

jQuery Validation plugin in ASP.NET Web Forms

I would really like use the jQuery Validation plugin in my ASP.NET Web Forms application (not MVC). I find it easier than adding asp validators everywhere and setting the control to validate field on all of them. I am just having some issues both when setting the class like this class="required email" which I think has something to do...

Multiple sortable lists with jquery

I am building a todo list application for one of my projects and I am creating multiple todo lists dynamically from the database and each todo list will have multiple todo items. The items will be constrained to their own list and will not be able to be connected to another list. I've done a single sortable list in jquery before, but ...

Detecting tinyMCE textareas with JQUERY

On some of our forms we convert our textareas over to tinyMCE textareas. How can I tell in jquery if a given textarea has been converted? I've notice that tinyMCE will change the display of my original textarea to none upon init and then creates an adjacent span with a class of mceEditor, but the follow jquery statements never seems to...

Best option for modal screens in ASP.NET

I'm looking for the best way to implement a modal popup in ASP.NET of another ASP.NET page. I'm coding for Firefox 2.x+ and can use JQuery, but I'm not very familiar with it. I see a lot of solutions that use "AJAX", but I'm not sure in what context, so I haven't gone down that route. ...

jQuery Form Validation Plugin: Requiring e-mails to be .EDU addresses

I'm trying to build a sign-up form that will only accept .EDU e-mail addresses. I also want to keep the AJAX functionality I have (using the "remote" parameter) to ensure that the e-mail address hasn't been used before. How can I do this? ...

putting html inside an iframe (using javascript)

Can I create an empty iframe as a placeholder to later insert html into it? In otherwords, suppose I have an empty iframe with an id, How do I insert html in it? I'm using jquery, if that makes it easier. ...

jQuery UI slider - can't slide to 0

jQuery 1.3.2 / jQueryUI 1.7 / Slider $("#slider").slider({ range: "min", min: 0, max: 40, value: 0, slide: function(event, ui) { CalculateOrder(event, ui); } }); it starts off just fine, but after I move the slider I can't get it back to 0, ui.Value is 1 when i slide it all the way to the left. I've tried setting m...