We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9d9f9 commit 3ccf86cCopy full SHA for 3ccf86c
demos/tabs/manipulation.html
@@ -76,8 +76,8 @@
76
77
// close icon: removing the tab on click
78
$( "#tabs span.ui-icon-close" ).live( "click", function() {
79
- $( this ).closest( "li" ).remove();
80
- $( "#" + $( this ).prev().attr( "aria-controls" ) ).remove();
+ var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
+ $( "#" + panelId ).remove();
81
tabs.tabs( "refresh" );
82
});
83
0 commit comments