Can you check through JQuery if a tab of the same ID has already been created? -
I have this script which creates a new tab in JQuery. Can you check through this code that if that special tab has been created?
Thank you!
function createTab (name) {var tabName = "# fragment-" + name; $ ("# Container-1"> UL). Tab ("add", tab name, name); Var newTab = $ (tabName) .css ("display", "block"); NewTab.html ("& lt; iframe src = 'ViewPatient.aspx? Pname =" + name + "' width = '100%' frameborder = '0' scrolling = 'no' height = '300'> & lt ; / Iframe & gt; "); };
$ ('element'). Size ()> 0
Comments
Post a Comment