i have this jquery autocomplete works perfectly: (let say, input text name is "item description", these names are pull from a SQL database)
<script>
$(function() {
var availableTags = [
"Apple",
"Banana",
"Mouse"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
And now i have to add a price input text field next to it.
now i can think of is, populates a list of price (from SQL database) and fill the price in accordingly base on which item is selected from the autocompleted field.
but how? any ideas?
Aucun commentaire:
Enregistrer un commentaire