Set select option 'selected', by value

后端 未结 28 2988
攒了一身酷
攒了一身酷 2020-11-22 10:40

I have a select field with some options in it. Now I need to select one of those options with jQuery. But how can I do that when I only know the

28条回答
  •  生来不讨喜
    2020-11-22 11:41

    a simple answer is, at html

    
    

    on jquery, call below function by button or whatever

    $('#idUkuran').val(11).change();
    

    it simple and 100% works, coz its taken from my work... :) hope its help..

提交回复
热议问题