I need to display tabs dynamically based on the users’ permission as some user will have restriction for list of tabs. How can i do this in Struts2 or do we have any jquery plugin. The tabs can be n number and there can also be child tabs. Thanks in advance.
Share
I am using this jQuery tab plug-in in my application. I have modified the html and jQuery code to display the default tab in order to display tab dynamically like you asked. Here it is what I did
HTML
jQuery
call the following function when you want to display a particular tab dynamically
You can dynamically create a tab by using document.createElement() or equivalent jQuery syntax, apply appropriate classes and IDs and thean appending to the container div