Since you're in the javascript section here, the simplest thing would be:
Code:
<select name="whatever" onchange="doSomething();">
<option value="">Hi</option>
<option value="">There</option>
<option value="">Folks</option>
<option value="">!</option>
</select>
What you do with doSomething(); though is up to you, it need not even be a function. You may elect to simply put script code directly into the event. For a real time update to the database without submitting the form though, you will need some sort of AJAX associated with this event.
However, when the form is submitted (if you are willing to wait for that), if the select has a name, its value (changed or not) will be available to PHP (or whatever server side language you are using) as post or get data. If you knew its value before, you would be able to tell on the server side if it had been changed or not and act accordingly.
Bookmarks