Sweet, thanks.

-- Josh

----- Original Message ----- 
From: "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]>
To: "jQuery Discussion." <[email protected]>
Sent: Saturday, February 24, 2007 3:21 PM
Subject: Re: [jQuery] dynamic input attribute


> try
> $("[EMAIL PROTECTED]" + myvariable + "]").attr( {checked: true });
>
>
> On 2/24/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
>> Hey All,
>>
>> Jquery noob here...
>>
>> I would like to select an input checkbox field with a specific name, and
>> check the box, but that name would have to be dynamic.  It seems like I 
>> need
>> to do something like:
>> $("[EMAIL PROTECTED]").attr( {checked: true });
>>
>> ...but I don't want the string "myvariable", I want the value of 
>> myvariable.
>> Is there a way to do that?
>>
>> TIA,
>> Josh
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>
>
> -- 
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to