jQuery RadioButton index

Posted by Tomas on Stack Overflow See other posts from Stack Overflow or by Tomas
Published on 2010-03-19T07:16:56Z Indexed on 2010/03/19 7:21 UTC
Read the original article Hit count: 395

Filed under:
|
|

Hello

How to get checked RadioButton Index using jQuery? I need to read it and save to cookies to load status later using code

$('input[name="compression"]')[{Reading from cookies code}].checked = true;



1<input name="compression" type="radio" value="1" checked="checked" />
2<input name="compression" type="radio" value="2" />
3<input name="compression" type="radio" value="3" />

Regards Tomas

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about radiobutton