Posted 30 December 2012 - 08:13 AM
what did I do,can i cannot use onkeyup event if not then what event I use.
Posted 07 January 2013 - 11:17 AM
please open it and write "do" you can see related result now pres down arrow key and wait
a sec you can see it will disappeare.i know why this appear
i am using "onkeyup" event for this when you press down arrow key the function will refresh.
you will be able to see the code from page view source.
like google when you enter and word it will give you a list related to it.
i want to make my datalist like that.
Posted 07 January 2013 - 08:32 PM
Posted 08 January 2013 - 09:08 AM
Posted 08 January 2013 - 09:18 AM
<input type="text" id="searchBar" onkeyup="searchoption()" list="sop" />You are using the 'onkeyup' attribute of the <input> element. When the key comes up, you are calling the function searchoption(). In this function, you will need to do a test to see which key was pressed. If it's the up or down area, you will want to highlight the previous/next element, or if it's anything else you will want to hide the popup.
Posted 09 January 2013 - 01:27 PM
can here is any thing which can do that.
Posted 09 January 2013 - 07:56 PM
Posted 09 January 2013 - 07:58 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users