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
discuss@jquery.com
http://jquery.com/discuss/
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/