1<select id="state">
2 <option value="state1" data-id="1">state1</option>
3 <option value="state2" data-id="2">state2</option>
4 <option value="state3" data-id="3">state3</option>
5</select>
6
7$('#state option[data-id="2"]').val();
8
9//output state2