Hi there, Does anyone know a easy way to find out if the selected option has a value? as .val returns in this case the text and i'm looking for a way to let jquery tell me that the option value is empty.
Mh...found something on stackoverflow that might help you out http://stackoverflow.com/questions/154059/what-is-the-best-way-to-check-for-an-empty-string-in-javascript Code (markup):
Well i've found out that if you don't use the value="" part in option, jQuery will return the text as the value. Only thing to do is add value="" and the value stays empty!