Click here to Skip to main content
15,913,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm not used to javascript. What I want to do is simple.

Let's say I have <div> in my document and I want to create a new <a> tag/control inside it when I click on a button. When I click the button again it will create another <a> tag/control beside it without any spaces in between and when I click on the other button it will remove a particular <a> tag/control.

In other words a I want to create my own tab and target IFRAME when one of the <a> tag/control is click. I want to create it in pure javascript.

Please help me with this. Thank you.
Posted
Updated 3-Jun-13 15:45pm
v2
Comments
ZurdoDev 3-Jun-13 21:40pm    
Try using jquery ui's tabs. http://jqueryui.com/tabs/
Mohibur Rashid 3-Jun-13 21:46pm    
and you want to achieve this without javascript?
Chris N.P. 3-Jun-13 21:48pm    
I want to achieve it using javascript. Do you have other alternative aside from javascript/jquery?

1 solution

Refer - jQuery UI: Tab Methods[^].

It has the codes to add a tab and remove a tab by jQuery.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900