Search
 
SCRIPT & CODE EXAMPLE
 

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");
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: for i in range vue js 
Javascript :: how to create a class javascript 
Javascript :: getboundingclientrect 
Javascript :: post json example 
Javascript :: modulus js 
Javascript :: find items in array not in another array javascript 
Javascript :: c# convert object to json 
Javascript :: Get specific elements from an object by using filter method 
Javascript :: vuejs show content on loaded 
Javascript :: convert string to array javascript 
Javascript :: react video 
Javascript :: enable swipe using javascript 
Javascript :: new line javascript string 
Javascript :: how to load js in vuejs components 
Javascript :: closest js 
Javascript :: array -1 javascript 
Javascript :: math.round in javascript 
Javascript :: Turn on modern JS by adding use strict to your script 
Javascript :: javascript add items to array 
Javascript :: javaScript setDate() Method 
Javascript :: counting sheep 
Javascript :: how to make an event listener only work once 
Javascript :: show modal by using id in list react 
Javascript :: mongodb find and update one field 
Javascript :: date compare in js 
Javascript :: how to select an adjacent element javascript 
Javascript :: angular schematics 
Javascript :: js detect object has key 
Javascript :: usestate in react js 
Javascript :: how to compare previous value with current in jquery 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =