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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -