Autocomplete Textbox Jquery with Database Coldfusion

Autocomplete Textbox Jquery with Database Coldfusion using cfcomponent, coldfusion, StructNew ,cffunction, ArrayAppend, mysql, cfqueryparam, Jquery, Jquery Autocomplete

<link rel="stylesheet" href="jquery-ui.css" />
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui.js"></script>

<cfform name="actoComp">
 <table border="0" cellpadding="0" cellspacing="10">
     <tr>
         <td>Account No<br>
         <cfinput type="text" name="accountNo" id="accountNo">
         </td>
         <td> 
           <input type="submit" name="Submit" value="SUBMIT">
         </td>
      </tr>
  </table>
</cfform>



<script>
 $(document).ready(function() {  
       $( "#accountNo" ).autocomplete({
           source: "ajaxCall.cfc?method=getResults&returnformat=json",
           minLength: 3,
           select: function(event, data) {
              $('#accountNo').val(data.item.value);
           }
       });
 });
</script>
 
More details Visit:
https://www.elearn99.com/programming/autocomplete-textbox-jquery-coldfusion/247/ 


Comments

Popular posts from this blog

Login with facebook using coldfusion

Create CSV file in Coldfusion Using CFFile

Get Previous One Day Data in Sql Server