I would like to get the text for a selected menu item from JavaScript/jQuery in a clean way. I would rather not use jQuery matching for specific classes if possible, I'm hoping for something like:
$("#myMenu").getSelectedItemText()
Alternatively, I guess I could populate a variable during a Select event handler or something.
Any suggestions? Thanks!
$("#myMenu").getSelectedItemText()
Alternatively, I guess I could populate a variable during a Select event handler or something.
Any suggestions? Thanks!