PDA

View Full Version : Resolved PHP Form



kaos
08-25-2009, 01:36 AM
hello everyone!

i have a php feedback form on my website. this form has drop-down select box on it. i was wondering if there was a way to cause an alert box to appear if a certain option is selected.:confused:

thenajsays
08-25-2009, 02:06 AM
yes there is:

<select onChange="if(this.value='my alert'){alert('Hey!')}">
<option value="something">Choice One</option>
<option value="something else">Choice Two</option>
<option value="my alert">Choice Three</option>
</select>
cheers