Event for tabclick?
Posted: Fri May 29, 2020 9:24 pm
HI,
I want to know when the first tab is clicked to show the save button. when the 2nd tab is selected, the save button will disappear.
I attached a click event to nuTab0
but that leads to an error "Maximum call stack size exceeded"
Because nuShow() calls nuOpenTab() which calls again $('#nuTab' + i).click() ....
Call stack: Click ->nuShow() --> nuOpenTab() -> $('#nuTab' + i).click() --> Click .... --> Uncaught RangeError: Maximum call stack size exceeded
How to solve this?
I want to know when the first tab is clicked to show the save button. when the 2nd tab is selected, the save button will disappear.
I attached a click event to nuTab0
Code: Select all
$("#nuTab0").click(function(){
nuShow('nuSaveButton');
});
Because nuShow() calls nuOpenTab() which calls again $('#nuTab' + i).click() ....
Call stack: Click ->nuShow() --> nuOpenTab() -> $('#nuTab' + i).click() --> Click .... --> Uncaught RangeError: Maximum call stack size exceeded
How to solve this?