In an edit form, there are some tabs. When the form loads, I run some PHP procedures to dynamically load some content. This loading should only happen, when a certain tab is selected.
To put it differently, I need to detect when another tab in an edit form is selected so that I can then run some JavaScript code. How to detect a tab change, is there an event?
I read similar questions but there has not been an answer.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
tab change detection
Re: tab change detection
You do not have the required permissions to view the files attached to this post.
Re: tab change detection
How does this detect when another tab is selected? This retrieves just the id of the selected tab, doesn't it?
I'm looking for an event. Thank you.
Code: Select all
$('.nuTabSelected')[0].id
How to detect a tab change, is there an event?
Re: tab change detection
Timo,
There isn't an event for that.
You need to create your own.
Steven
There isn't an event for that.
You need to create your own.
Code: Select all
$( ".nuTab" ).click(function() {
alert( "Handler for .click() called." );
});