[英]onchange input value trigger select option change not working
jQuery(document).ready(function() {
jQuery("#delivery_date").change(function(){
jQuery("#shipping_method_0").trigger('change');
});
});
If a user clicks on the input, the Select option automatically refreshes. 如果用户单击输入,则“选择”选项将自动刷新。
I had same issue on mobile and the below convention solved it. 我在移动设备上遇到了同样的问题,以下约定解决了它。
jQuery(document).ready(function() {
jQuery("#delivery_date").on('change', function(){
jQuery("#shipping_method_0").trigger('change');
});
});
and for change
event in shipping_method_0
follow the same structure. 对于
shipping_method_0
change
事件,请采用相同的结构。
jQuery("#shipping_method_0").on('change', function(){
//code goes here
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.