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
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
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
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.
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
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.
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
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
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
How would I select Free sex out of...
div
Free sex
ul
liSymphilis/li
liGhonoreah/li
liAids/li
/ul
/div
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:
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,
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?
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
});
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
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
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);
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%'
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*
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*
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?
I'm trying to select all input elements but the submit or button.
I appreciate the help.
Aldo
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
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
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
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() {
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
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
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
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 =
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.
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 =
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
33 matches
Mail list logo