Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if radio button is selected jQuery

/*
	A quick way to check if a radio button as been checked is by using
    the .is(":checked") fucntion. A small example below :)
*/
var myElem = jQuery('#elemId'); // select the radio element
var testResult = myElem.is(":checked"); // returns true if checked, else false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #radio #button #selected #jQuery
ADD COMMENT
Topic
Name
8+9 =