Sunday, 14 May 2017

Display data into dropdown list from database using Bootstrap

<div class="dropdown">
  <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">-PLEASE SELECT-
  <span class="caret"></span></button>
  
</div>

I want to drop down the list that I query from NodeJS

  connection.query(
  'SELECT dealer_infor.dealer_id, dealer_infor.dealer_branch, dealer_infor.dealer_address, dealer_infor.dealer_tel, dealer_infor.dealer_contact, dealer_infor.dealer_map FROM dealer_infor',
  function (err, results) {
      connection.query(
      'SELECT bigbike.Bigbike_ID, bigbike.Bigbike_name, bigbike.Price, bigbiketype.Type_ID, bigbiketype.Type_name FROM bigbike  INNER JOIN bigbiketype ON bigbike.Bigbike_ID=bigbiketype.Type_ID',

When I test it didn't show anything with my button.



via Oakko Phattharawat

No comments:

Post a Comment