/ Published in: jQuery
This snippet gets the value of the selected dropdown
Expand |
Embed | Plain Text
jQuery.fn.selectedLabel = function() { return this.find(':selected').html(); } Then you can access the text from a selected option within a select: var text = $('select#month').selectedLabel();
You need to login to post a comment.
