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

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -