KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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
Tags (comma-separated)
Save Edits
Cancel