Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquerey dropdown button

<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
  <h2>Dropdown Example</h2>
  <p>The data-toggle="dropdown" attribute is used to open the dropdown menu.</p>
  <div class="dropdown">
    <button class="btn btn-primary dropdown-toggle" id="menu1" type="button" data-toggle="dropdown">Dropdown Example
    <span class="caret"></span></button>
    <ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">HTML</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">CSS</a></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">JavaScript</a></li>
      <li role="presentation" class="divider"></li>
      <li role="presentation"><a role="menuitem" tabindex="-1" href="#">About Us</a></li>    
    </ul>
  </div>
</div>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Javascript :: component will mount hooks 
Javascript :: express example 
Javascript :: web animation api keyframe options 
Javascript :: delete item from array of objects javascript 
Javascript :: js loop through array 
Javascript :: Iterating or loop through the elements of an array is with a for loop (for): 
Javascript :: datatables add row with id 
Javascript :: how to add a property to a class in javascript 
Javascript :: set tiemzone datetime object 
Javascript :: interval manage for javascript 
Javascript :: ArduinoJson.h 
Javascript :: liquid filter 
Javascript :: How to make a toggle button in Angularjs 
Javascript :: call function 
Javascript :: gettimezoneoffset javascript 
Javascript :: js object destructuring 
Javascript :: slice js 
Javascript :: Javascript "For..in Loop" Syntax 
Javascript :: selecting multiple feilds using populate in mongoose 
Javascript :: raw: true in sequelize 
Javascript :: join javascript array 
Javascript :: how we can set react select required 
Javascript :: best method to convert string to upper case manually 
Javascript :: how to add a new line in template literal javascript 
Javascript :: sign javascript 
Javascript :: js 2d array includes 
Javascript :: namespace javascript 
Javascript :: passport js npm 
Javascript :: null check in javascript 
Javascript :: react class names 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =