Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onchange radio button jquery ajax

$('input[type=radio][name=gender]').change(function() {
    if (this.value == 1) {
        alert("Select Male");
    }else if (this.value == 2) {
        alert("Select Female");
    }
});
 
PREVIOUS NEXT
Tagged: #onchange #radio #button #jquery #ajax
ADD COMMENT
Topic
Name
3+1 =