DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
jquery get selected dropdown item
// dropdown for company selection
var
company
=
$
(
'#CountryCode'
)
.
find
(
'option:selected'
)
.
text
(
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#jquery
#selected
#dropdown
#item
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit