<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <title>JavaScript Event Change</title>
</head>
<body>
    <select onchange="alert('Anda telah mengubah pilihan!');">
        <option>Pilih</option>
        <option>Pria</option>
        <option>Wanita</option>
    </select>
	<p><strong>Catatan:</strong>Pilih opsi apa pun di kotak pilih untuk melihat cara kerjanya.</p>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.