how to prevent selection of a selected radio button
In my page there are two radio buttons and they are allowing select and unselect of the same radio button. I want to prevent this
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AniPosted Feb 18, 2014, 1:03 AM
I captured code which is making issue. In my application they written one JavaScript file which will make the radio button work like check box.
AniPosted Feb 5, 2014, 9:47 AM
i cant share code.
Thanks for your suggestions
SUNIL GUTTAPosted Feb 5, 2014, 9:43 AM
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_radio_checked ---> Check here.
I tried every possible way but no luck .. If u can share your code attachment i can help you
Cheers Ty
AniPosted Feb 5, 2014, 9:16 AM
thanks for the reply
Here the issue is selected radio button is getting unselected when the same radio button is selected
SUNIL GUTTAPosted Feb 5, 2014, 8:56 AM
So then you can select only ONE at a time , if you select 2nd the 1st goes unchecked .
-------------------------------MARK ANSWER ,If it helps/Thank you-------------------------