I have a form like this:
<select>
<option value="page1.html" class="confirm">Page 1</option>
<option value="page2.html" class="confirm">Page 2</option>
<option value="page3.html">Page 3</option>
</select>
I want to use SimpleModal to show a confirmation before going to Page 1 or Page 2, but not if Page 3 is selected. The confirmation message should be the same for Page 1 and Page 2. I’m a little confused about how to do the syntax.
Using the JavaScript from the SimpleModal Confirm Demo as an example, you could do the following: