I am trying to check a radio button but all I have as a ref to the element is the name attribute and the elements value.

I need some way to check the correct radio where name="accounts\['+i+'\]\[account_status\]\[selected\]" and value="current" in "#form1".

I have the code below but it checks the last radio button.

$('#form1 input[name="accounts\\['+i+'\\]\\[account_status\\]\\[selected\\]"]').attr('checked', true);

Thanks

Edit
Report