I'm a little bit confused. I am trying to add a change event to a text.
This is my html:
<input type="text" id="tag_search" placeholder="Start typing to search tags..." name="tag_search" size="33"/>
This is my script
$("#tag_search").change(function(){
alert('Typing');
});
I'm aware that the change event will only fire once the input element loses focus but even when I do that the alert does not display.
but it will not work at all. Can anyone help me.
changeevent only fires when the element loses focus?$(function() { $('#tab_search').change(...); })input