Let say i have 3 textboxes :
- product
- buyPrice
- sellPrice
the product textbox is autocomplete and it works well already, but i want to populate default buyPrice and default sellPrice which i can get from my table and i can include that in json i return. Is it possible?? i googled it but still can't find good example on it.
this is piece of my code :
$( "#product" ).autocomplete({
source: '/product/product'
});
sample of my Product list json :
["x10","f10","f25"]
And 1 more question. Is it possible that i preload My Product List so it no need to go to server everytime user type something in product textbox?