RadioButtonList and Javascript

  • Thread starter Thread starter Olivier
  • Start date Start date
O

Olivier

Hello,

I'd like to catch the onchange or onclick event of the RadioButtonlist to empty a textbox when the user click the second item of the radiobuttonlist.

Is it possible with Javascript ? How ?

TIA,

Olivier.
 
<script type="text/javascript"><!--
function checkRadio()
if (document.forms[0].RadioButtonGroupName[1].checked)
document.forms[0].TextBoxName.value = "";
// --></script>

<input type="radio" onclick="checkRadio()" name="RadioButtonGroupName"
CHECKED> Item Zero<br>
<input type="radio" onclick="checkRadio()" name="RadioButtonGroupName"> Item
One<br>
<input type="radio" onclick="checkRadio()" name="RadioButtonGroupName"> Item
Two<br>


--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Hello,

I'd like to catch the onchange or onclick event of the RadioButtonlist to
empty a textbox when the user click the second item of the radiobuttonlist.

Is it possible with Javascript ? How ?

TIA,

Olivier.
 
Back
Top