Write a program to show how toggle button works in Bootstraps ?

 Posted by Vivek.Ramapuram on 6/9/2015 | Category: Bootstrap Interview questions | Views: 980 | Points: 40

We have to write a little javascript and HTML for toggle function in Bootstrap .

Example :
<script type="text/javascript"> 

$(document).ready(function ()
$("#toggleBtn .btn").click(function () {

Adding buttons for this toggle function
<div id="toggleBtn">

<button type="button" class="btn btn-success">True</button>
<button type="button" class="btn btn-danger">False</button>

Run the code combination in your browser.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response