How To Find The Selected Radio Button Immediately Using The 'this' Variable

How To Find The Selected Radio Button Immediately Using The 'this' Variable


  • 2 Mar, 2012

    <script>function favAnimal(button) { alert('You like '+button.value+'s.');}</script><input type="radio" name="marsupial" value="kangaroo"onchange="favAnimal(this)">Kangaroo<br /><input type="radio" name="marsupial" value="Opossum"onchange="favAnimal(this)">Opossum<br /><input type="radio" name="marsupial" value="Tasmanian Tiger"onchange="favAnimal(this)">Tasmanian Tiger

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.