[jQuery] Re: Using multiple selectors

2008-10-15 Thread wyo
Thanks, this helped my to discover the correct syntax, choosing the apostrophes right. $('#Test, input[name="Prefix"]').val('Testing'); O. Wyss On Oct 14, 10:40 pm, TimW66 <[EMAIL PROTECTED]> wrote: > The input needs to have an ID, jQuery can't reference by the name > attribute using the style

[jQuery] Re: Using multiple selectors

2008-10-14 Thread Michael Nelson
Try the val function: http://docs.jquery.com/Val - Michael - Original Message From: wyo <[EMAIL PROTECTED]> To: jQuery (English) Sent: Tuesday, October 14, 2008 12:49:58 PM Subject: [jQuery] Using multiple selectors I've a form like Now I try t

[jQuery] Re: Using multiple selectors

2008-10-14 Thread skankster
You could try: $(document).ready(function() { $('#Test').find('input[name="Prefix"]').css('background- color','yellow'); }); but you should consider getting rid of the table as you can style a form's layout using css for tags like form, fieldset, label, input... On 14 Okt., 22:40

[jQuery] Re: Using multiple selectors

2008-10-14 Thread TimW66
The input needs to have an ID, jQuery can't reference by the name attribute using the style you specified. You might also try: $("#form input['name=Prefix']").val("Testing"); Here's more on selecting by attribute: http://docs.jquery.com/Selectors/attributeEquals#attributevalue And for more on s