Close Tab on Cancel Button in page

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Close Tab on Cancel Button in page

This post has NOT been accepted by the mailing list yet.
I wanted to close currently selected tab if i click on Cancel button in the page and show the previous tab.

  var openedTabs = $("#tabs").tabs({closable: true});
  var curIndex = openedTabs.tabs('option', 'selected');

I am able to close the tab but the page content is not hidding.

Please help me to close the tab (including content) on click of cancel button and navigate to previous data. or
please point me if already any post available for this issue discussion & solution.