jquery - set select option 'selected', by value - Stack Overflow

jquery - set select option 'selected', by value - Stack Overflow

瀏覽:1083
日期:2024-07-03
you can select on any attribute and it's value by using the attribute selector [attributename=optionalvalue] so in your case you can select the option and set the seleted attribute $("div.id_100 > select > option[value=" + value + "]").prop("selected",tru...看更多