I have an HTML input box, say
<input type="text" maxlength="50" size="50" name="subject" id="subject">
I need to call a function for each character entered.
For instance:
If the user enters "aaa" - triggers the event, he continues to enter "aaa bbb" - the trigger event again, etc.
But gaps should not be considered.
I need this to publish the field value for an external API - for search.
Has anyone done this before?
Please, help.
source share