javascript - Displaying text as soon as a radio button is clicked, dynamically -
i have bunch of radio buttons. each correspond number 1 - 24. want display number somewhere else in page radio button selected. how this?
you create div id "displaynum", "display:none" style property
then create "onclick" handler radio buttons.
the function called handler figure out button clicked (from button's id) , change content of "displaynum" div number (using innerhtml property of div), change "display" property of div invisible "none" visible "block".
Comments
Post a Comment