Create dynamic Tabs using jQuery and css

Prem Tiwari - - JavaScript, Web Technologies

I am going to explain the easy and simple process to Create dynamic Tabs using jQuery and css. Tabs makes a sense when you have a limited screen space and you want display the huge data.

CSS Code

Javascript Code

Html Code<html lang=”en”>
<meta charset=”utf-8″ />
<title> | Create dynamic Tabs using jQuery and css</title>
<div id=”dialog” title=”Tab data”>
<fieldset class=”ui-helper-reset”>
<label for=”tab_title”>Title</label>
<input type=”text” name=”tab_title” id=”tab_title” value=”” class=”ui-widget-content ui-corner-all” />
<label for=”tab_content”>Content</label>
<textarea name=”tab_content” id=”tab_content” class=”ui-widget-content ui-corner-all”></textarea>

<button id=”add_tab”>Add Tab</button>

<div id=”tabs”>
<li><a href=”#tabs-1″>Nunc tincidunt</a> <span class=”ui-icon ui-icon-close”>Remove Tab</span></li>
<div id=”tabs-1″>
<p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>


See The Demo


Prem Tiwari

Prem Tiwari is the founder of and also a professional developer and a blogger by hobby.

Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.