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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top