jQuery out of key-value pair send key to servlet while show value on webpage -
i have replace <select>
tag jqueryui autocomplete
so code like
<select id = "product" name = "product"> <option value = "m0001">mercedes</option> <option value = "b0001">bmw</option> <option value = "f0001">ferrari</option> </select>
so when form submitted servlet value m0001 or b0001 etc. depending on whether mercedes or bmw
now have replace jquery ui autocomplete. such when type on <input type = "text" name = "product"/>
on webpage result mercedes or bmw etc. once bmw selected. on servlet doing request.getparameter("product");
give me b001
how can ??
Comments
Post a Comment