Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
get the last option from select jquery
Saksham
Programming language:
Javascript
2021-06-06 13:40:55
0
Q:
get the last option from select jquery
Cabbie407
Code:
Javascript
2021-06-04 23:35:10
var myVal = $('.someclass option:last').val();
1
Tags
get
jquery
option
select
last
Related
jquery last character in string
jQuery get selected option
get select option count using jquery
jquery count selected options
find last element with class jquery
jquery get last element with two class name
New to Communities?
Join the community