<option value="abc">abc</option>
I know I can do $('select').val('abc')
but what if I have something like this
<option value='{"name":abc,"id":123}'>abc</option>
How do I select abc
base on id
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…