jquery

How to calculate grand total from table cells using jquery

Here's my HTML Table format : <table width="580" height="217" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="334">Product</td> <td width="246">Price</td> </tr> <tr> <td>Product One</td> <td class="price">599</td> </tr> <tr> <td>Product Two</td> <td class="price">175</td> </tr> <tr> ...

Unbind - Remove - Kill a jQuery plugin

Is there a way to "unbind" a jQuery plugin from a jquery selector? ...

JQuery Shuffle Effect using Html5 [Canvas +CSS +JS]

Hi All, I saw a JQuery Shuffle Example and I was trying to implement the same using HTML5 and Canvas + CSS + JS with images. but finding animation/drawing using Canvas bit difficult. I just had idea of creating as many canvas as images and then try to move the canvas for shuffle animation. Are there any libraries to achieve the same...

change html object inside cloned object

supose i have tr like this : <tr id="file" > <td width="510"><div align="right"><span class="star"> *</span> <input type="text" name="title" style="width:500px;direction:ltr" /> </div></td> <td width="156" nowrap="nowrap"><div align="right">file </div></td> </tr> and i ha...

How to prevent a div to collapse when we click the checkbox inside that div?

I have a checkbox present inside a div. When the user clicks on the div(except the checkbox) another div is showing and hiding. This is achieved by JQuery. But my problem is when i click on the check box the div also showing the sliding effect(which i dont want). How to prevent the div from sliding when I click on the checkbox. ...

IE8 only renders the first class-change in a jQuery CSS drop-down menu

In http://www.scherer.nl/nieuw (the /nieuw part will be removed when the site is ready) the drop-down submenu's on the left should shift up their background image when hovered over, so the hovered item becomes red i.s.o. orange. With jQuery I'm using toggleClass to add a class 'hover' to the hovered menu-item. The CSS makes the backgroun...

Asp.net Menu open submenu on click not on hover

Is there any way to force asp.net 3.5 menu control to open submenues(menuitems) on mouse click, not on hover. I beleive it can be done with javascript or maybe jQuery, because when I click on menuitems postback ocures even if there is no navigation url. I found some javascript function but it only opens root items on click, deeper item...

Get the selected child within an .each loop in jQuery

Hey guys. I am trying to get the selected option in an each loop. What is the correct syntax to achieve that? I tried the following: var row = $('#template_23423); row.find('select[name^=COUNTY]').each(function (){ var selectedOption = $(this).children(':selected').val(); Any ideas? ...

Jquery/Javascript - store last 4 letters of string (cross browser)

Hi, I've written a quick image swap class that switches images on hover by placing adding '_grey' to the image src. The code works great throughout the site in all browsers apart from ie6. The substr doesnt seem to work properly here - any advice please!? Code as follows - $(document).ready(function() { var initImg; $('img.s...

Checking to see if AJAX response is empty and other problems

I'm currently trying to check if the response I'm getting is empty. Now what I think will work is below: $.ajax({ type: 'GET', url: '<%=Url.Action("FindTransaction", "Calls") %>', data: { companyID: $('#CompanyDDL').val(), storeID: storeNo, tranDate: $('#Tr...

Why jQuery live() does not work ?

I have the following code which work fine: $('.ui-selectmenu-menu a').click(function() { alert('OK'); }); However, if I replace it with: $('.ui-selectmenu-menu a').live('click', function() { alert('OK'); }); it does not work. What could be the reason for that ? (In my case, $('.ui-selectmenu-menu a') elements could be removed and...

jQuery load default page issue

I have this page which loads quotes. It has a search form wherein if the user types in the search keyword, it will load the results via ajax. Now, if I click on the link which should load the default page with the Quotes, instead of the search results page, nothing happens. If I am on the home/default page itself, and click on the link...

Coda Slider: Slide panel plus an external div elsewhere on page

I'm looking for an easy solution to show/hide/slide (whichever is easiest) an external div elsewhere on my page at the same time my corresponding coda panel slides into view. So essentially I am trying to slide a panel into view while also sliding another panel further down on the page that is NOT in the same container. I'm using this s...

Using Append to Copy Table Row - Would like to Create Unique Ids

I have a form, containing a table with rows of items for users to fill in. I currently have it set up so that the user can add an additional row in case they need to add more information. This works wonderfully, but I'm wondering if there's a way to generate a unique id for each cloned field. My function is currently this: functi...

how to tell jquery to select a parent element, but not its children?

Im using the following click function on an element: $('#extras').toggle(function() { $('div#extras').show(); $('div#extras').stop().fadeTo('fast', 1); }, function() { $('div#extras').stop().fadeTo('fast', 0, function() { ...

JQuery Accordion

Hi everyone, I'm having trouble with this piece of functionality I'm trying to have an accordion with tabs inside can any one help me as the second accordion tab doesn't seem to open. http://thecarbonlist.com/test.html Any help would be greatly appreciated. Thank you in advance. ...

Check if div is last and show button

Hey guys. I have a quiz script, that has questions in different divs, they come one after another, and I want that when the last div fadesIn it would show submit button instead of a next question button. Here's my js. $('#questions').ready(function(){ for (i = 1; i < 100; i++) { if ($('#question' + i).length > 0) { ...

How to bulk select <td> using jQuery

Hi, I am having a HTML table with many rows. I have seven columns in it. Each cell (<td>) in the table has an ID attribute with grid[x][y] with x and y representing columns and rows respectively. Example <td>s are <td id="grid[2][2]" class="available"...> -- This indicates 3rd column 3rd row <td id="grid[2][4]" class="unavailable"......

Access Table Row containing radio button

I've a table containing a number of rows, where each row contains 3 td elements, the last of which is always a radio button. I've a jquery function which is fired when any of these radio buttons is checked: $('input[type=radio]').change(function() { $('input[type=radio]').each(function(index) { //remove class from...

Prevent default hash behavior on page load

Hey all, I have a page with a tabbed interface. Each tab has a unique id. I've enabled links pointing to that page with the appended id after the hash, and I'm now trying to circumvent the default browser behavior that opens a URL with hash at the location of the element on the page. So: pageA links to pageB like this: <a href="page...