Answer the question
In order to leave comments, you need to log in
How to get value in option when selected, via jquery?
<select id="selectYear">
<option>Все</option>
<option>1999</option>
<option>2000</option>
<option>2001</option>
<option>2002</option>
</select>
Answer the question
In order to leave comments, you need to log in
$('#selectYear').change(function() {
alert(this.value);
});
jsfiddle.net/6swukaw6
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question