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

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

sql server - SQL Query - Delete duplicates if more than 3 dups? -

c# 3.0 - Issue with getting 2 chars from string using indexer -