jquery

JQuery Select Element Based On Criteria

I have a drop down box for each row inside a table <table> <tr> <th> <select name="priorityID" id="priorityID"> <option label="Important" value="1" selected="selected">Important</option> <option label="semi important" value="2">semi important</option> <option label="normal" value="3">normal</option> <option label="not important" valu...

create dialog without id in jquery

Hi All, I have a query regarding jquery that i want to create a dialog open and then fill some values in it. As i have tried to create a dialog using jquery it uses old values because that div already exists on that page. So i want to create an object of the dialog using jquery and then fill fields in it. I am using jsmarty and jquery t...

grab text with [quote]foo text[/quote] and replace it to <div class="quote-text">foo text</div> with JS

Hey, I have some text that is formatted like this: [quote]foo text[/quote] and I want to change it to this: <div class="quote-text">foo text</div> How can I do this with JS? I'm using jQuery. ...

Generate a radio button in JQUery

Hi,, <li><a href="#" id="radio">Multiple Choices</a></li> onclick of this radio i am trying to generate a radio button with two choices .. How to do so in JQUery?? ...

Problem in adding a class element to an element.

I'm trying to remove a class attribute from an element and add the class to another element. I successfully removed the class but having problem in appending the class to the other element. When I click the link 'View All', <a class="code_link" id="viewAllMyForms" href="#" >View All</a> This function is called.I want to remove the c...

jquery sum checked + select all

the sum part works if you click each box individually but not when you click select all (although select all does check all the boxes) any thoughts? <!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" lang="en" xml:lang...

Appending in JQuery

Hi,, i am having a HTML like <p style="" class="fieldChoices title">Choices: <input value="option1" maxlength="150" id="Choice1"/> <div class="seperator"/> <p class="deleteChoice1 cutsom_button"> <a class="btn lbOn deletechoice" href="#"> <span class="button_image"><span class="background_16 user_reply">Delete</span> ...

create dialog without id and append in jquery

Hi All, I have created a div using jquery that i want to make a dialog. I want to append another div in that dialog before opening it. How can i do that?? ...

Unknown element in JQUery click

Hi, I am having a Html generated using JQUery and its like <p class="fieldChoices title" style=""> Choices: <input id="Choice1" value="option1" maxlength="150"/> <div class="seperator"/> <p class="deleteChoice1 cutsom_button deleteField"></p> <div class="seperator"/> <input id="Choice2" value="option2" maxlength="150"/> <...

Can I code same functionality for 2 id element's in one click function?

Is there any method to have the same coding for the click function of two different id elements in one click function? For example,I have two link elements with ids, myFormsTabSubmitted and formStatusSubmitted. Both the link is of same functionality. When I click both these links, the same div element("submitted") is showed,and other di...

Unbind click event with jQuery failing.

Hi, I am using a highly modified version of the jqueryFileTree plugin, that is able to add new files and folders. When a new file is created in realtime I have to bind the tree again to the click event so that all new files and folders can work as intended. Just re-binding the filetree has caused me some trouble with the functionality ...

is this unbind bug still exist in jQuery

today i try to make a code with jQuery bind/unbind event but, it always goes wrong if i use unbind, then i search to the net about unbinding an event, is this bug http://dev.jquery.com/ticket/1043 still exist in jQuery???(assume in last version) ...

jquery tooltip probelm in IE8

Hi guys, i have linkbuttons inside table columns and want to display tooltip even if it is disabled..This worked fine in FF and Chrome but not in IE8 as IE8 disabled elements don't receive any events i tried this workaround i create a span outside the linkbutton if it is disabled and find the parent of the linkbutton i.e table cell.......

Error : delete choices and its updatings using JQuery

Hi, i am having a HTML for the settings which is like <p class="fieldChoices title" style=""> Choices: <input id="Choice1" value="option1" maxlength="150"/> <div class="seperator"/> <p class="deleteChoice1 cutsom_button deleteField"></p> <div class="seperator"/> <input id="Choice2" value="option2" maxlength="150...

Error using Jquery Datepicker only on IE some pages

Hi Guys, I am using Jquery Datepicker in my application. It is working fine on all the browsers i.e Mozilla, Safari, Chrome etc. However when I am looking in IE 6.0 it giving below error. "Length is null or not a object". It is behaving specific for some page in IE 6. In some pages is working fine but in some page after selecting th...

jQuery Validate - can I re-validate a group of fields after changing one?

I'm using jQuery Validate and would like to re-validate a group of fields whenever one of them is changed (or possibly, whenever one of them validates successfully). My attempts so far just create infinite loops. Is this possible, or does the plugin design preclude it? (Specifically, I've got a method that requires at least X of group ...

jQuery: Get first element of type in top UL in a nested list

Hey, I have a nested list like this: <ul class="list"> <li class="list_item_type_1"> nested list <ul class="list"> <li class="list_item_type_2">Unnested item</li> </ul> </li> <li class="list_item_type_2">Unnested item</li> </ul> With jQuery I want to add a listitem before all ".list _ item _ type _ 2" in the first ".l...

jquery datepicker alert selected day formatted as 1 (or 2,...,14,...)

How can I alert the selected day into a format like 1,2,3,4,...,31. I.E. 12.10.2009 should alert 12. ...

Jquery Calculation issue

Hi , Having a small issue with the following bit of jquery. Its used to calculate line items and aggregate totals. e.g. line_item 1: qty x rate + vat (if vatable) = subtotal line_item 1: qty x rate + vat (if vatable) = subtotal subtotal: sum(qtys x rates) vat: sum (subtotal x vat formula) total : sum(subtotals) Heres the code, any ...

About jQuery .each or other iteration

Hi, How to iterate through table if it has this structure: <table> <tr> <td><input class = "fire"> ... </td> <td><input class = "water"> ... </td> </tr> <tr> <td><input class = "fire"> ... </td> <td><input class = "water"> ... </td> </tr> <tr> <td><input class = "fire"> ... </td> <td><input class = "wa...