Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
To delete all the rows that have been added to the Form Grid when a field value is changed
...
对于已经添加到表单表格中的字段, 当字段值发生改变时 删除所有行
Code Block | ||
---|---|---|
| ||
<script> $(document).ready(function(){ var selectField = "field1"; var formGrid = "field2"; //when select box value is changed $("[name="+selectField+"]:enabled").change(function(){ //remove all data from form grid $("[name="+formGrid+"]").find("table tr.grid-row").remove(); }); }); </script> |