I have successfully implemented the jQuery dnnTabs in a custom module. I am trying to figure out how to programmatically remove a tab.
Here is the javascript for setting up the tabs:
<script type="text/javascript">
jQuery(function ($) {
$('#tabs-demo').dnnTabs();
});
</script>
Here is the function I created to remove the tag:
<script type=
"text/javascript"
>
jQuery(
function
($) {
$(
'#tabs-demo'
).dnnTabs();
});
</script>
Here is the function I created to remove the tag:
<script type=
"text/javascript"
>
function
removeTab(tabID) {
$(
'#tabs-demo'
).dnnTabs(
'remove'
, tabID);
};
</script>
Here is how I calling the function from the code behind:
ScriptManager.RegisterStartupScript(
Me
.Page,
Me
.[
GetType
](),
"tmp"
,
"<script type='text/javascript'>removeTab(1);</script>"
,
False
)
Tab is not being removed. I have tried several different iterations, with no luck.