jquery autocomplete get hidden field value on keypress
Posted
by jacob
on Stack Overflow
See other posts from Stack Overflow
or by jacob
Published on 2010-05-15T12:09:40Z
Indexed on
2010/05/15
12:14 UTC
Read the original article
Hit count: 842
jQuery
|autocomplete
i have a textbox. i have used jquery autocomplete to fill citynames and in the result handler i store the city id in the hidden field.now when user select option and press enters i have called this function onkeydown=" keyPress(event)". In this function i need hidden field value. but it is not set because the result handler is called after that. so how do i set/get hidden field value in keypress event.
© Stack Overflow or respective owner