When I'm trying to capture input on a dropdown in Javascript on focus, but it does not throw events .
Without using a third party library, there is anyway to capture this input.
Example: http://jsfiddle.net/m4tndtu4/11/
You do not want a third party library, but your question has been tagged on jquery. You also use jquery code inside your jsfiddle, and got it with native js ...
So I think that you want to use at least jquery.
The following: I've only removed something you wrote, and just entered an 'on' handler:
$ ("# sel1") . ("Keyboard", function () {// This CSS ("background-color", "yellow"). Text ($ ('# sel1 option: selected'). Text ()); // Change CSS of output and Set the text to the value of the selected option var entry search suites = string.framecrod (ehic); $ ("#input"). Css ("background-color", "yellow"). Text (insert search search);});
Currently, it only shows the last pressed key - and if SHIFT was pressed it is not working ... but I think, You can understand how to insert the keyboard or remove it, because it is considered as a new search.
btw By looking at this, you can take a look at angular or any other MVC - the list and a search box are quite easy with those frameworks!
No comments:
Post a Comment