jquery

Need help with jquery sorting

I have a column within which are multiple 'records' (each a div). Each record has a bunch of fields (each a span whose id is the fieldname). I want to allow the user to sort all the records based on a field. I also want, the field that has been sorted to be moved to the beginning of the record. So I came up with this. But its really sl...

Getting the dynamic value of a checkbox in repeating region loop with Jquery

How do I get the values of a check box that is in a repeating region with its values dynamically generated from a recordset from the database.I want to retrieve the value when it is checked and after I click on a link.The problem is that it is retrieving only the first value of the recordset which is 1.This is the code: jQuery: $(docum...

JQuery. Check value of select box and textbox with same class, Is it possible?

I have several select boxes and textboxes with the same class and I have the following statement. UPDATED //This goes through each visible tr of the table with class notEmptyTable $('.notEmptyTable tr:visible').each(function(index) { //This checks that the elements with class checkTextBox1IsNotEmpty its not Empty. if ($('.check...

Jquery-UI tabs : Double loading of the default tab

I use jqueryui-tabs to display a tabbed UI. here is how my markup looks in a MasterPage: <div id="channel-tabs" class="ui-tabs"> <ul class="ui-tabs-nav"> <li><%=Html.ActionLink("Blogs", "Index", "Blog", new { query = Model.Query, lang = Model.SelectedLanguage, fromTo = Model.FromTo, filters = Model.FilterId }, new{ title="Bl...

Store checkbox values in cookie

Hi, I need to store checbox values in a cookie to use in a comparison page. Please help. Thanks, C ...

I have a bunch of images being shown on click via JQuery - any easy way to animate this?

This is the (quite simple) JS code I'm using: $(document).ready(function() { $(".button-list .next").click(function() { project = $(this).parents().filter(".projektweb").eq(0); currentimg = project.find(".images-list li.current"); nextimg = currentimg.next(); firstimg = project...

Simulated click on "add more value" button of multi value cck field causes whole content form to submit

Hi I have a multi value cck field in my cck content type. I want to simulate click on "add another item" using jquery. which is like $('#edit-field-supp-quan-field-supp-quan-add-more').trigger('click'); but it causes whole content form to submit instead of adding extra multi value cck field. Manuall clicks are working perfectly. Can a...

Javascript Grid that can handle sections in a table

I am making an ASP.NET MVC application that lets a user design a questionnaire that other users can fill out. Now, questionnaires, rather than just having a list of questions, often have sections or subsections that could have headings and not the other columns that an ordinary row (a question) would have. I want a JS Grid that can han...

jQuery: plugin inter-communication

Here is the problem: I have a very complex plugin that does lots of different initialization and binding when it is executed. I want to be able to run the same plugin multiple times on the same element, giving it different options. After it runs once on the element, certain initialization does not need to be done again on subsequent ex...

JQuery - Element Selection

Hello, I'm relatively new to JQuery. I'm trying to understand how to select a child element. Currently, I have some HTML that is defined as follows: <div id="elem1"> <div class="display">Student 1</div> </div> <div id="elem2"> <div class="display">Student 2</div> </div> <div id="elem3"> <div class="display">Student 3</div> </div...

Javascript Cookie Function not working for Domain

Here are the functions Im using: Set Cookie: function set_cookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure ) { var cookie_string = name + "=" + escape ( value ); if ( exp_y ) { var expires = new Date ( exp_y, exp_m, exp_d ); cookie_string += "; expires=" + expires.toGMTString(); } if ( path ) ...

how use ajax- dynamic- list inside the div tag

Hi, how use ajax- dynamic- list inside the div tag.The div tag displayed in the facebox.Thanks inadvance ...

JQUERY if not hover

Mouseenter of DIV A sets DIV B to show(). What I want is on mouseleave of DIV A if they are not hovering over DIV B, hide DIV B. But, on mouseleave of DIV A if they are hovering over DIV B keep showing DIV B. $('#DIVA').mouseenter(function() { $('#DIVB').show(); }).mouseleave(function() { //if DIVB not hove...

jquery/ajax load new content when available

I know this is quite a vague question -- sorry about that. If I have a forum, shoutbox or something similar where users enter and submit data, running on PHP and MySQL, what is the best way to have the newly submitted content automatically display on the page for all users when it is submitted? Much like a live newsfeed, if you like... ...

How to disable scrolling of body element?

How to disable scrolling of body? $('body').css('overflow','hidden'); only hides the scrollbars but it does not disable the scrolling. I want to disable the scrolling of the body. But I want to keep the scrolling of other division intact. ...

jquery .siblings do not work

Hi i want when the one #box is open the others #box close. Html: <div id="main"> <div id="link">click</div><!--/*div*/--> <div id="box">content1</div><!--/*div*/--> </div><!--/*div*/--> <div id="main"> <div id="link">click2</div><!--/*div*/--> <div id="box">content2</div><!--/*div*/--> </div><!--/*div*/--> <div id="main...

jQuery Form Validation / Change validation type based on other form value...

We have a form that has a text input box it. The data entered into this field generally has no validation (other than being required), but we want it to validate to date if another form equals a certain value. Think about setting up password hints... You choose a hint type, say your dogs name which has no real validation, or you choose...

append without selector

is it possible to do an append without specifying a selector so in html I have an arbitrary element and inside that I call a function that will append content inline so html looks like this <!-- stuff before --> <fieldset> <script type="text/javascript"> $(document).ready(function(){ ...

Auto add magnifying icon to thumbnails

Hi, I'm looking to add a centered magnifying glass icon to my portfolio gallery. Like the effect at http://jquerystyle.com/gallery. I know I can do this with css at each instance, but I would like to find a way to do it automatically. Any jquery plugins that do this? Thanks! ...

Javascript - Get callback info back to original calling function.

Let's say you have a Javascript function that calls a web service method. So that webservice completes and calls a callback function, which has the result. How do I get that result back into the original function that called the web service method? Essentially, I'm trying to "synchronize" an asynchronous call. Update: This is what I...