Create button with plus and minus sign

Description

The following code shows how to create button with plus and minus sign.

Example


<!-- ww w.j  a v a 2  s  . c  om-->

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.0/css/bootstrap.min.css">
<script type='text/javascript'>
$(window).load(function(){
 $(function(){          
    $("#plus").tooltip({
        placement: 'bottom',
        trigger: 'hover',
        title : 'test'
    });
    $('#minus').tooltip({
        placement: 'bottom',
        trigger: 'hover',
        title : 'test'
    });
}); 
});
</script>
</head>
<body style='margin:30px'>
  <button class="btn" type="button" id="plus">
    <i class="icon-plus-sign"></i>
  </button>
  <button class="btn" type="button" id="minus">
    <i class="icon-minus-sign"></i>
  </button>
</body>
</html>

Click to view the demo





















Home »
  Bootstrap »
    Example »




Accordion
Alert
Auto Complete
Badge
Breadcrum
Button
Carousel
Collapse
Dialog
Dropdown
Form
Icon
Jumbotron
Label
Layout
List
List Group
Media
Navigation Bar
Pager
Page Header
Panel
Paragraph
Pills
Popover
ProgressBar
ScrollSpy
Switch
Tab
Table
Thumnail
Tooltip
Tree
Well