jquery

Applying class to an element - JQuery

I am working on a web page that has a large number of tables. The JQuery script processes each row and decides what CSS style needs to be applied to it. I am using this snippet to apply a class to the table cell $myElem.parents('td').eq(0).attr('class', 'requiredClass'); Functionally, it works as expected. However, in IE7.0, it takes ...

[jquery] append data loaded problem

Hello, My html is like this <div id="rsContainer"> <table id="rsTable"><!-- DATA HERE --></table> </div> and my javascript is like this $('#UpdateAll').click(function() { $('#status').fadeIn('500').text('Loading... This may take a while.'); $.ajax({ type: 'post', url: 'func.php', data: 'action=updat...

IE8 problem with scrollTo in a RTL site

Hi, I'm working on a site in hebrew (rtl) http://client.bearditch.com/bilderish/ and I'm using the jQuery plugin scrollTo for navigation. The strange thing is that it works in FF, Safari and IE6 but it freezes inside IE8. The scroll is displayed correctly (set #wrapper to overflow:scroll) but it won't nudge. Any ideas? The js part ...

Select next first element in jQuery

Hello Friends, <fieldset id="fs1"> <legend id="leg1">First Legend</legend> <div id="div1"> "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi ...

javascript jquery childnode

hi All, I have a problem that i want to access the normaltagCmt elements value: <div id="random no"> <div id="normaltagdialog"> <table style="width:100%; height:100%" border="2px"> <tr style="width:100%; height:13%" align="left"> <td> <label> {$LANG.TEXT}</label> </td> </tr> <tr style="width:100%; hei...

[jQuery] A nice selector to remove this horrible code...

Hi, can anyone offer a selector to do away with this horrible chunk of code: // img is the image element... var descriptionContent = $(".descriptionContent", img.parent("td").parent("tr").next("tr")); The html looks like this: <table> <tr> <td><img /></td> </tr> <tr> <td><div class="descriptionContent" /><...

jQuery help - find textbox relevant to current element

Here is my HTML <tr> <td colspan="2" class="borderBottomCell"> <div class="benefitInfo" style="WIDTH: 99%! important;"> <asp:DropDownList runat="server" ID="ddlbc1" /> <asp:Label runat="server" ID="lblbc1" /> ...

jQuery html() and &amp;

I'm doing a search within list of people. And I want it to show results on the fly and so it does. But there is one link that I need and it should look like this: chatid=18&userid=45&create=new but after the results are displayed through this: $.get('/ajax.php', {sec: 'search_users', ajax: 1, search_for: $(this).val()}, function(data...

jquery: How to empty a form field, then bring focus/cursor to it?

I have a form that I'm submitting with AJAX. A user fills out the field (called "barcode") and hits return, and the form submits. After the form submits, they are shown a success or failure message. I want to: Fade out the message Empty the 'barcode' field Bring the cursor back to the field, ready for the next person. So far I h...

jQuery Function Seems to Quit When Different jQuery Function Is Called

I wrote my own function that keeps a sidebar fixed on screen after a certain point of scrolling and then returns it to it's relative position when scrolled back to the top. If the window is resized to a size smaller then the height of the sidebar, it returns it to its normal relative position as well. Works great! Problem is when I run ...

JQuery how to access divs <p> tag and append it

Hello I'm trying something .. I was reading Jquery traversing documentations some forums, this websites previously asked questions relating this topic .. none actually answers my question so I'll ask instead .. here is the deal <div class="entry"> week <span>some text</span> <p>DKK</p> <input type="radio" name="red<% Response.Write(co...

Is IxEdit worth ?

I am intrigued by IxEdit and its full-javascript approach that should allow to build nice web pages powered by JQuery effects. I like also the opportunity to use it on many platforms. But, is it worth a try ? Is it complete ? Has it compatibility issues ? Are there better alternative tools ? ...

Jquery UI Slider - Input value truncates 3.40 -> 3.4

Hello Developers, I am trying to resolve an issue. When I put in stepping, lets say .01 everything works great. However, if it lands on 1 it prints 1 instead of 1.00, as well as 3.40 prints as 3.4. I have added toFixed(2) in various places of ui.slider.js, but have not found the correct location to make this fix. Can anyone shed ligh...

Stop reload for ajax submitted form

Hello, My html of form is like this <form id="form" method="post" action="func.php"> <table> <!--- DATA HERE --> </table> <input type="submit" value="Submit" id="set" /> </form> I want to use javascript to post the data, my javascript is like this $('#set').live('click', function () { $('.setForm').attr('action', ''); var...

Calling jQZoom on Replaceable Image

I'm creating an e-commerce product page that will use jQZoom as a way of zooming in on the featured product image. I'd like, however, the ability to click an alternate product photo thumbnail and have it not only replace the big, featured image, but also re-instantiate the jQZoom() funcion on the newly replaced featured image. All of t...

jquery to wrap elements

Hi, I have this code and every 3 's I need to wrap with a div (original) <div id="entries"> <a class="thumbnaila"><img class="thumbnail" alt="" src="blabla"/></a> <a class="thumbnaila"><img class="thumbnail" alt="" src="blabla"/></a> <a class="thumbnaila"><img class="thumbnail" alt="" src="blabla"/></a> <a class="thumbnaila"><img cla...

Javascript Function With JQuery POST Always Returns undefined

Hi Everyone, I have no idea what's going on here and was hoping someone could help, I'm sure it's something easy going on that I'm just missing. I have a function in javascript that has a JQuery post inside of it. I would like to return the results of the post which is just text and put it in a variable. The number is coming back cor...

Jquery toggle background?

Hello, here is my html <div id="entry"> week <span></span> <p>DKK</p> <input type="radio" name="red<% Response.Write(counter); %>" id="radio2" value="75" /> </div> I have bunch of these div entry generated by while loop so I want to achieve this : WHEN input inside entry is clicked I want background image of entry div to change, but i...

Filter a list based on user input with jQuery

I have a list of songs, and I want users to be able to filter them by typing into a text field. Here's what I'm doing now: $("#filter_song_list").keyup(function() { var filter = new RegExp($(this).val(), "i"); $("ul.song_list a").each(function(){ if (!$(this).text().match(filter)) { $(this).hide(); } else ...

JQuery loop through 2-dimensional array of elements

Hello, I need to loop through a set of 2-dimensional array of hidden input fields and display matching values next to each other. Example of hidden fields: <input type="hidden" name="list[en][1]" class="list" value="Keyword"> <input type="hidden" name="list_desc[en][1]" class="listdesc" value="Keyword description"> ...