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
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
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
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
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.
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
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...
Free sex
Symphilis
Ghonoreah
Aids
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.
question1
answer1
question2
answer2
The question is.. Onclicking "question1", I should popup "answer1".
window.onload = function() {
$("#questions-
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?
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 selected
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
I have a table that contains several , all of them look like
this.
20-04
459
559
659
439
519
599
424
489
554
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:
Title
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
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
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?
I'm trying to select all input elements but the submit or button.
I appreciate the help.
Aldo
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
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
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 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
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
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
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
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.
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
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
var row = jQuery("#test > tbody > tr : last");
something like that? (of coz the above one didn't work)
thanks.
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
36 matches
Mail list logo