I have a problem about which I am very confused. I have a select box with s dynamically generated using a mysqli query:
$result = mysqli_query($db, \"SELECT
Call onchange function in select tag as below
echo 'Contact List';
Javascript src should be in head of the html page.
Updated php: If you must want to get value from function, you must call it. Otherwise, simply, you can make as below