Saved!

How to insert Bootstrap drop-down values in database - wOHDXFju

How to insert Bootstrap drop-down values in database

  
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" ></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script>



<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">Select City
<span class="caret"></span></button>
<ul class="dropdown-menu">
  <li><a onmousedown="javascript:postContent('1','Lahore');" href="#">Lahore</a></li>
  <li><a onmousedown="javascript:postContent('2','Islamabad');" href="#">Islamabad</a></li>
  <li><a onmousedown="javascript:postContent('3','Karachi');" href="#">Karachi</a></li>
</ul>
   </div>

<div id="myDiv">How to insert Bootstrap drop-down values in database.</div>
  
  
Meta
http://codesheet.org/placehold-img/?width=300&height=250&color=33aaff&text=&textcolor=

Quick add:

× Clear

Add Stylesheets

normalize.css
reset.css
nice.css
/> CodeSheet UI
Font Awesome
Bootstrap
Foundation
Animate

Add External JavaScript

jQuery 3.1.0
jQuery UI
Bootstrap
Angular

Add Google Fonts

Dosis
Exo+2
Lato
Lobster
Open+Sans
Open+Sans+Condensed
Oswald
Playfair+Display
Quicksand
Raleway
Rochester
Roboto
Roboto+Condensed
Roboto+Mono
Shadows+Into+Light
Ubuntu
Arvo
Indie Flower
Merriweather
Pacifico
Sedgwick Ave
Sedgwick Ave Display
html
css
js