Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. I check, compile and run every program. Contact me at: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting

Distribute your Resume to 500+ Job Boards & Recruiters

7,160 questions

10,122 answers

573 users

How to create dynamic (toggle) tabs with Bootstrap

1 Answer

0 votes
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet"
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<div class="container">
  <h2>Bootstrap Dynamic Tabs</h2>
  <ul class="nav nav-tabs">
    <li class="active"><a data-toggle="tab" href="#home">Home</a></li>
    <li><a data-toggle="tab" href="#menu1">PHP</a></li>
    <li><a data-toggle="tab" href="#menu2">JavaScript</a></li>
    <li><a data-toggle="tab" href="#menu3">HTML</a></li>
    <li><a data-toggle="tab" href="#menu4">CSS</a></li>

  <div class="tab-content">
    <div id="home" class="tab-pane fade in active">
      <p>Home text</p>
    <div id="menu1" class="tab-pane fade">
      <p>PHP is a server-side scripting language designed primarily for web development 
         but also used as a general-purpose programming language.</p>
    <div id="menu2" class="tab-pane fade">
      <p>JavaScript is a high-level, dynamic, weakly typed, object-based, 
         multi-paradigm, and interpreted client-side programming language.</p>
    <div id="menu3" class="tab-pane fade">
      <p>Hypertext Markup Language (HTML) is the standard markup language 
         for creating web pages and web applications. </p>
    <div id="menu4" class="tab-pane fade">
      <p>Cascading Style Sheets (CSS) is a style sheet language used for describing the 
         presentation of a document and most often used to set the visual style of 
         web pages and user interfaces written in HTML</p>



answered Jul 21, 2017 by avibootz