I have a table (Multi-Page as Tabs) named 'bncit_01a_le' and I want if the value of the field 'Source' (select) change to 1 then the second YUI-Tab should be removed.
I put this javascript code to ClientScript => Table-Specific -> Add/Copy page -> Startup Script
===
$("#x_Source").change(function() {
if (this.value == "1") {
bncit_01a_le_add.tabView.removeTab(bncit_01a_le_add.get('tab_bncit_01a_le2'));
}
});
Does not work. What is wrong?