So i got this select box and onchanging it updates an database with the selected value. What i would like is when i change the value a confirm box pops up. If you press cancel the change wont happen if you press yes you change it is this possible?
Thank you for looking at it.
echo "<select id='select' name='select' onChange='updateDb()'>";
while ($row = mysql_fetch_array($result)) {
echo "<option value='" . $row['phonenr'] . "'>" . $row['phonenr'] . "</option>";
}
echo "</select>";
function updateDb() {
$.post("execute.php", $("#form").serialize());
}