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

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 in

[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: value='picked_all' /> Pick all check boxes all the check boxes will be checked. How? -- Cheers ReynierPM

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 wrote: > I am manipulating a

[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.

[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. Anywa

[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... Free sex Symphilis Ghonoreah Aids

[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. question1 answer1 question2 answer2 The question is.. Onclicking "question1", I should popup "answer1". window.onload = function() { $("#questions-

[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( ""+ molname +""); 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 selected

[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 all first td's inside all in a table

2009-01-08 Thread Tijmen Smit
I have a table that contains several , all of them look like this. 20-04 459 559 659 439 519 599 424 489 554

[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: Title

[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* $('#tag_cWeb_TSW

[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* $('#tag_cWeb_TSW

[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: Cheese Dog 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
hi grandma 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 for example... so i gues some travesting method may be avala

[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: Item One Item Two Item Three Item Four Item Five I want to be able to perform an operation using each result (the results being "Item One", "Item Two", "It

[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 tags in a 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: Print Web Vid

[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: This is the first line of the first paragraph And here is some more text. Bladibladibla This is the first line of the secons paragraph And here is some more text. Bladibladibla This is the first line of the third paragraph And here is s

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

2008-02-12 Thread Matias
Hi, I have an unordered list like this Item 1 Item 1.1 Item 1.1.1 Item 2 Item 2.1 Item 3 and I want to select only the leaf nodes (in this example namely Item 1.1.1, Item 2.1 and Item 3) I was wondering if there was an easy way to use

[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 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 = $(this).children('p').children('a')[0].href; But

[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. ... // 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 = $(this

[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; These are the product of a Java Server Faces datalist (Tomahawk component) so there is no way to av

[jQuery] How to select the kast TR of a TABLE?

2007-07-03 Thread howa
var row = jQuery("#test > tbody > tr : last"); something like that? (of coz the above one didn't work) thanks.

[jQuery] How to select all but one

2007-03-31 Thread joomlafreak
I am not a programmer by profession, but a surgeon and doing a lil bit of programming is my hobby. Ok, my question is how do I select and apply function etc to all but one element. For example I have 3 divs with a class test. Each of these have an individual id, say itemId1,itemId2,itemId3. Now I