<script type="text/javascript"> $("#"+fieldID+"").autocomplete({ source: function(request, response) { $.ajax({ url: "autocomp3.asp", dataType: "json", data: { term : request.term }, success: function(data) { response(data); } }); }, minLength: 3, delay: 300, select: function (event, ui) { //$("#txtAllowSearch").val(ui.item.label); // display the selected text $("#"+hiddenIdField+"").val(ui.item.id); // save selected id to hidden input } }); </script> <script type="text/javascript"> var fieldID =""; function SetParam(fID) { fieldID = fID; } </script> <input type="text" id="subject" > <input type="text" id="institute" >
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)