Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Handling the Change Event</title> </head> <body> <select onchange="alert('You have changed the selection!');"> <option>Select</option> <option>Male</option> <option>Female</option> </select> <p><strong>Note:</strong> Select any option in select box to see how it works.</p> </body> </html>