[英]How to change yii2 pluginOptions value
From Thailand.来自泰国。
Below is the selected dropdownlist that I want to make a change by onchange another dropdown list下面是选定的下拉列表,我想通过 onchange 另一个下拉列表进行更改
<select class="select1ex8-box" name="select2_ajax" pluginOptions='{"allowClear":"1","minimumInputLength":0,"ajax":{"url":"\/ezforms2\/select2\/find-component","dataType":"json","data":"function(params) { return {q:params.term, ezf_field_id:\u00271606745049066915700\u0027, ezf_id:\u00271606745049064379400\u0027}; }"},"escapeMarkup":"function (markup) { return markup; }","templateResult":"function(result) { return result.text; }","templateSelection":"function (selection) { return selection.text; }"}' ezf_field_id="1606745049066915700" modal_size="modal-xxl" template_items="" ezf_id="1550037618000870100"></select>
I try to change this selected drop downlist using this function but there is no anything change我尝试使用此 function 更改此选定的下拉列表,但没有任何变化
$('.select2ex8-box select').on('change',function(e){
var select2ex8 = parseInt($('.select2ex8-box option:selected').val());
$('.select1ex8-box select').val(select2ex8).change();
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.