Hello,
I have a <select> form field that uses the following JS:
function remindMe() {
if (document.getElementById('rec1pass').value == 'Night Season Pass') {
confirm("Did you know it is a better value to but an Almost Anytime Pass? Click OK to change your selection."); return false; }
}
with:
<select name="rec1pass" onChange="remindMe()" id="rec1pass">
<option value="Night Season Pass">Night Season Pass</option>
<option value="Day Season Pass">Day Season Pass</option>
<option value="Almost Anytime Pass">Almost Anytime Pass</option>
</select>
What i'm looking to do is remind my guests that one of our passes is a better value than another. As written, this works just fine ... but i'd like it so when a guest hits the OK button in the confirm window after selecting "Night Season Pass" the selection of rec1pass changes to "Almost Anytime Pass". This would be ideal rather then just using an alert window and forcing guests to have to manually change the selection. The cancel button would simply close the alert.
Can this be done? Thank you much.
Hugz
Jenny
I have a <select> form field that uses the following JS:
function remindMe() {
if (document.getElementById('rec1pass').value == 'Night Season Pass') {
confirm("Did you know it is a better value to but an Almost Anytime Pass? Click OK to change your selection."); return false; }
}
with:
<select name="rec1pass" onChange="remindMe()" id="rec1pass">
<option value="Night Season Pass">Night Season Pass</option>
<option value="Day Season Pass">Day Season Pass</option>
<option value="Almost Anytime Pass">Almost Anytime Pass</option>
</select>
What i'm looking to do is remind my guests that one of our passes is a better value than another. As written, this works just fine ... but i'd like it so when a guest hits the OK button in the confirm window after selecting "Night Season Pass" the selection of rec1pass changes to "Almost Anytime Pass". This would be ideal rather then just using an alert window and forcing guests to have to manually change the selection. The cancel button would simply close the alert.
Can this be done? Thank you much.
Hugz
Jenny