Hi friends, this is my code:
<select id='first'> <option value='1'> First </option> <option value='2'> Second </option> <option value='3'> Three </option> </select>
This is my select2 code:
$("#first").select2();
Below is the code to get the selected value.
$("#first").select2('val');
This returns text like first,second,three , and I want to get 1,2,3 .
So I need a select value, not text.
jquery jquery-select2
Renish Khunt Nov 11 '13 at 14:03 2013-11-11 14:03
source share