如何使用jQuery获取已选中的RadioButton索引?我需要读取并保存到cookie中,以便稍后使用代码加载状态。
$('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" />
问候
托马斯