Thursday, November 26, 2015

HOW TO DO AUTOCOMPLETE DROP DOWN IN FTL FILE

At first add a style display:none like this way to hide the drop down.
<select name=”supplierPartyId” id=”AssignSupplier_supplierPartyId” size=”1″ style=”display:none”>
<option>1</option>
<option>2</option>
</select>
Then add javascript like following.
<script language=”JavaScript” type=”text/javascript”>
ajaxAutoCompleteDropDown();
jQuery(function() {
jQuery(“#AssignSupplier_supplierPartyId”).combobox();
});
</script>
WOW! autocomplete come in ftl file.
Have Fun!