[jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread ReynierPM
Hi: I have a fieldset and a set of check boxes inside. I want when I pick one, for example: input type='checkbox' id='pick_all' value='picked_all' / Pick all check boxes all the check boxes will be checked. How? -- Cheers ReynierPM

Re: [jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread Peter Edwards
You can use selectors to do this quite easily - I've posted an example at: http://jsbin.com/uwaxo/ This has: 1. a checkbox which will select/deselect all others in the page (no matter whether they are in different forms/fieldsets, 2. a checkbox which uses a descendant selector $('#fieldset1

Re: [jQuery] How to select every checkbox on my page inside a fieldset

2010-02-15 Thread ReynierPM
On 2/15/2010 8:54 AM, Peter Edwards wrote: 2. a checkbox which uses a descendant selector $('#fieldset1 input:checkbox') to explicitly target a given fieldset by ID, and Thx a lot Peter, you and jQuery rocks. It works perfectly for descendant selector #fieldset1 ;) -- Cheers ReynierPM

[jQuery] How to Select element with class, but EXCLUDE its children?

2009-10-30 Thread jmatthews
I am manipulating a style on elements with class=House or Senate. Unfortunately, it sets the style for every child underneath. The tree is like this: AL House of Representatives Member Member Member Senate Member Member Member House has class=House.

Re: [jQuery] How to Select element with class, but EXCLUDE its children?

2009-10-30 Thread waseem sabjee
give the elements childrent a class called : nomralffont with the following css .normalfont { font-weight:normal!important; } this is just an example you may went to give them a different style but use the !important On Fri, Oct 30, 2009 at 12:31 PM, jmatthews jmatth...@xexam.net wrote: I

[jQuery] How to select some but not all elements

2009-10-25 Thread breadwild
Hello, I'm building a nested menu where I want to add background colors only to top menu items. I can't change the generated code, so I have to live with the id's and classes as is. Relatively new to jQuery so still not used to filtering my selections carefully—is seems to grab everything.

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The checkbox select select select part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] How to select neighbouring elements

2009-08-16 Thread zephyr
Hi, I have this setup (pseudo code): formA table td checkbox select select select formB table td checkbox select select select The checkbox select select select part is included so it is identical in the 2 places (ie it is not possible to have different id's) What I want is that checking the

[jQuery] how to select a child by an attribute

2009-07-14 Thread gswa...@synergydatasystems.com
I have 2 lists on a page and I have a link set up to remove an li item from the one list. I need to check to see if there is a copy of that item in the other list based off an attribute in my li item called qid. How would I look for a child list item based off this custom attribute? Assuming I

[jQuery] How to select all text in a div except ul

2009-05-01 Thread nick
How would I select Free sex out of... div Free sex ul liSymphilis/li liGhonoreah/li liAids/li /ul /div

[jQuery] How to select one of the many forms i have

2009-04-25 Thread funkyasl
Hi all, I'm a jquery newbie. I've been searching around the web a lot, but could not find an answer. My page has multiple forms (forma, formb, formc, etc). I want to select one particular form, say formb, without assigning an id to it, just by its name itself. How can i achieve this? I've tried:

[jQuery] How to select sub element text on clicking the parent element.

2009-04-17 Thread Kapse
Hi, I am newbie to the jquery. Please let me know, how i can do this. div id=questions-page div id=question pquestion1/p ul lianswer1/li /ul /div div id=question pquestion2/p ul lianswer2/li /ul /div /div The question is.. Onclicking question1,

[jQuery] how to select elements inside jQuery objects

2009-04-16 Thread hybris77
i've tried to do the following on a grand scale the last few days, please help my suggestion to select a classname inside a object containing the xhtml $( mol_elements .mol_row ).append( td+ molname +/td); I was then suggested the following, but that selects BOTH class and element, right?

[jQuery] How to select :inp...@type=text] OR :inp...@type=password]

2009-04-09 Thread Nick Boutelier
How do you use an OR statement in a selector function? For example... $(':inp...@type=text,password]').each(function(){ // do something to a text or password input });

[jQuery] How to select nested tabs

2009-03-20 Thread randy...@gmail.com
I have created nested tabs using Tabs 3. Trying to select the second nested tab by default. Doing this does not work... $(document).ready(function() { $('#container ul').tabs(1); $('#container-2 ul').tabs(2); }) The second container is ignored and the first nested tab is

[jQuery] How to select an element using its attributes

2009-01-23 Thread Quan Wen
Hi all, I am a newbie to jQuery. I encounter a problem in the 2nd line $(.imgs[src!=$('#photo'.attr('src')]).hover(function(){ it seems that $(.imgs[src!=$('#photo'.attr('src')]) returns no jQuery object, while in logic it should return jQuery object. Could anyone help to explain why? Thank

[jQuery] How to select one ID from multiple auto generated id?

2008-12-31 Thread adi
Dear All... I'am new to jquery I have some problem. I have some link that have Id that auto generated from mysql query, till now I could not figure out how jQuery know what ID that i have clicked . For example: // The FORM $query = mysql_query(SELECT id,title FROM book ORDER BY id DESC);

[jQuery] how to select the content of the current table row?

2008-12-22 Thread j0llyr0g3r
Hey guys, i'm having a hard time with jquery right now. Imagine the following simple table: CODE: table border='1' id='list_tracks_table' colgroup col width='40%' / col width='20%' / col width='20%' / col width='20%'

[jQuery] How to select a group of similar named objects?

2008-11-06 Thread nmiddleweek
Hello, I'm trying to select all element on page that have a similar ID... Object IDs are: tag_cWeb_TSW_Day01 tag_cWeb_TSW_Day02 tag_cWeb_TSW_Day03 tag_cWeb_TSW_Day04 Is there a wildcard character I can use to reference all of the above but using the keyword: tag_cWeb_TSW_Day*

[jQuery] How to select a group of similar named objects?

2008-11-06 Thread nmiddleweek
Hello, I'm trying to select all element on page that have a similar ID... Object IDs are: tag_cWeb_TSW_Day01 tag_cWeb_TSW_Day02 tag_cWeb_TSW_Day03 tag_cWeb_TSW_Day04 Is there a wildcard character I can use to reference all of the above but using the keyword: tag_cWeb_TSW_Day*

[jQuery] How to select option in SELECT

2008-09-23 Thread J.A. Oord
How do I set the selected value in a SELECT? ie: I have this form: select id=choose option value=1Cheese/option option value=2Dog/option /select and I want Dog to be the selected item. How do I do this?

[jQuery] How to select all input elements but the button one?

2008-09-09 Thread aldomatic
I'm trying to select all input elements but the submit or button. I appreciate the help. Aldo

[jQuery] How to select a specific descendant of curent object

2008-09-08 Thread Greeg
div id=box span class=child span class=grandchildhi grandma/span /span /div my question is how reach the .grandchild from .box? in theory, i can just use selector $(#box .grandchild) but this is not much handy when you already have selected the box object and pass it to some function

[jQuery] how to select innermost text in an LI?

2008-06-21 Thread Jack Killpatrick
Hi All, Wondering if anyone can help me out with this... I have a list like this and want to select the innermost text from each LI: liItem One/li lia href=yaddaItem Two/a/li lidiv class=somethinga href=yaItem Three/a/div/li lia href=yaItem Four/a/li liItem Five/li I want to be able to

[jQuery] How to select all in same row but not current one

2008-06-09 Thread wesbird
Hi, I have table with checkbox in every td, if anyone checkbox checked, I should disable all other checkbox in the same row. Now how I can select all checkbox in the same row but not current one. Thank you? Is jQuery doc down today? Thanks, Wes

[jQuery] How to select a form which don't have an input with name id?

2008-05-19 Thread tonous
Hello I'm trying to solve this - I have several forms on page and need to be sure that all of them have input id, some of them already have it some of them not, how to get the form where I need to add an input? I tried to get the forms which have this input $(document).ready(function() {

[jQuery] how to select?

2008-04-13 Thread tetris
I have been trying to select the a tags in a ulli config. with no succes: $(document).ready(function() { $('#sub-portfolio .button').click(function(event) { $('#sub-portfolio .button').removeClass('selected'); $(this).addClass('selected'); event.stopPropagation(); }); }); html part: ul

[jQuery] How to select an element based on visibility

2008-02-23 Thread zephyr
Hi,I cannot get my finger behind this one: I have this HTML: p class=firstLineThis is the first line of the first paragraph/p pAnd here is some more text. Bladibladibla/p p class=firstLineThis is the first line of the secons paragraph/ p pAnd here is some more text. Bladibladibla/p p

[jQuery] How to select last leaf of a tree?

2008-02-12 Thread Matias
Hi, I have an unordered list like this ul liItem 1/li ul liItem 1.1/li ul liItem 1.1.1/li /ul /ul liItem 2/li ul liItem 2.1/li /ul liItem 3/li /ul and I want to select only the leaf nodes (in this example namely Item 1.1.1, Item 2.1 and Item

[jQuery] How to select the last item in a collection?

2008-01-17 Thread Jesper Rønn-Jensen
I made a script that makes a div clickable by selecting all div class=click and setting the onclick event to go to the href of a link. Everything worked when i selected the first links href attribute. This works and selects the first a element: location.href =

[jQuery] How to select by id where the id contains a dot?

2007-11-06 Thread Derek Alexander
Unless I'm mistaken, JQuery (1.2.1) doesn't appear to be able to select by id where the id contains a dot. e.g. span id=error.password/span ... // the following does nothing $(#error.password).append('Required field'); Is this correct, is there any workaround? Cheers, D.

[jQuery] how to select this ?

2007-10-21 Thread photoboy
I'm just starting out with jQuery and am already staring at a wall. The goal: attach a mouse event to all links in a paragraph with id 'para' and display the text of the link. this is what I've come up with, which obviously doesn't work: $(#para a).click(function(){ var linkContent =

[jQuery] How to select element id that contains [] chars

2007-08-16 Thread Stuart
I've got a little problem here that would seem simple to sort out but has been rather stubborn. I'm trying to loop through a bunch of hidden text fields and grab their value. They look like so; input type=hidden id=scheduleHours[0] name=scheduleHours[0] value=7.5 / input type=hidden