What is the best way to disable an input with a radio button via jQuery?
Posted
by Massimo Ugues
on Stack Overflow
See other posts from Stack Overflow
or by Massimo Ugues
Published on 2010-03-25T18:04:35Z
Indexed on
2010/03/25
18:13 UTC
Read the original article
Hit count: 460
Hallo all. I got this piece of code:
<div>
<input id="id1" name="radioButton" type="radio">
<input type="text" id="idText1">
<p></p>
<input id="id2" name="radioButton" type="radio">
<input type="text" id="idText2">
</div>
When I select the radio id1 I need to disable idText2 and when I select radio id2 I need to disable idText1. Is there an elegant way?
Kind regards Massimo
© Stack Overflow or respective owner