[英]onchange on widget oracle right now
我有一個帶有選擇sub_id的FormInput小部件:
<rn:widget path="input/FormInput" name="Incident.CustomFields.c.customer_type"label_input="#rn:msg:CUSTOM_MSG_CUSTOMER_TYPE_LBL#" class="form-control" id="cstype" sub_id="selection" onchange="StoreSectors();"/>
在JavaScript中,我只有這樣:
function StoreSectors() { alert('Its Working'); }
但是onchange不能這樣工作。 如何使用Javascript捕獲選擇輸入的onchange事件?
加載后,我將在頁面底部添加一個事件偵聽器或使用jQuery。 通常,自定義字段具有不同的ID前綴,但自定義字段名稱結尾為:
例:
$("[id$='CustomFields.c.customer_type']").change(function(){ StoreSectors(); });
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.