Codeigniter-autocomplete-view


/ Published in: PHP
Save to your folder(s)

codeigniter autocomplete


Copy this code and paste it in your HTML
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- Latest compiled and minified CSS -->
  5. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
  6. <!-- Latest compiled and minified JavaScript -->
  7. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  8. <!-- Latest compiled and minified JavaScript -->
  9. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
  10. <script src="<?php echo base_url(); ?>assets/custom.js"></script>
  11. </head>
  12. <body style="background-color: #D0D0D0;">
  13. <div class="row">
  14. <div class="col-md-4 col-md-offset-4" style="margin-top: 200px;">
  15.  
  16. <label class="control-lable">Country Name</label>
  17. <input type="text" id="country" autocomplete="off" name="country" class="form-control" placeholder="Start typing and see the magic! :P">
  18. <ul class="dropdown-menu txtcountry" style="margin-left:15px;margin-right:0px;" role="menu" aria-labelledby="dropdownMenu" id="DropdownCountry"></ul>
  19.  
  20.  
  21. </div>
  22. </div>
  23. </body>
  24. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.