jquery trigger change event
$(selector).trigger("change");
trigger change select element jquery
$('#selectField').val(10).trigger('change');
or
$('#selectField').val(10).change();
select option trigger in js
/*html*/
<select id="sel" onchange='alert("changed")'>
<option value='1'>One</option>
<option value='2'>Two</option>
<option value='3' selected>Three</option>
</select>
/*Function js*/
var select = document.querySelector('#sel'),
input = document.querySelector('input[type="button"]');
select.addEventListener('change',function(){
alert('Yare yare daze');
});
/*RESULT*/
/*When change value trigger alert('Yare yare daze') */
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us