I have a select box with values automatically assigned and need to convert the values to display a certain string of text further down the page.
For example:
- Option 1 value 3111 = abc
- Option 2 value 3112 = def
- Option 3 value 3113 = ghi
- etc...
If user selects Option 1 it should reference something saying value equals abc and display abc.
I believe I can grab the value of the dropdown using $(this).val(), but how do I add this in to a string to say if value equals 3111 echo abc?