Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript radio button change event

<input type="radio" name="myRadios" onclick="handleClick(this);" value="1" />
<input type="radio" name="myRadios" onclick="handleClick(this);" value="2" />
  
 <script>
  	var currentValue = 0;
	function handleClick(myRadio) {
    	currentValue = myRadio.value;
    }
</script>
 
PREVIOUS NEXT
Tagged: #javascript #radio #button #change #event
ADD COMMENT
Topic
Name
7+6 =