Trigger change event <select> using jquery

前端 未结 8 1177
别那么骄傲
别那么骄傲 2020-11-28 04:27

is there anyway i could trigger a change event on select box on page load and select a particular option.

Also the function executed by adding the trigger after bin

8条回答
  •  误落风尘
    2020-11-28 04:53

    $('#edit_user_details').find('select').trigger('change');
    

    It would change the select html tag drop-down item with id="edit_user_details".

提交回复
热议问题