I am trying to open a modal in jquery on change of a select box.
There are multiple options in there one of which will redirect to a new window and one that I want to open a modal instead and load an external file.
The code that is currently working is here:
var url = $(this).val();
How can I sent an attribute to that code, do an if statement to tell if it's that one specific option in the dropdown box and to open a modal with an external page instead of redirecting?