• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Text box qs

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am designing a web page where there is a text box and a list boxx. I want an event for a text box which will fire whenever i change the value from the text box. so whenever i write even a single character or delete a specific character through backspace key this event should get fired.

I know that following events are present for a text box
ONFOCUS, when the element receives focus;
ONBLUR, when the element loses focus;
ONSELECT, when text in an input of type text or password is selected;
ONCHANGE, when the element loses focus and its value has changed since it received focus.

But none of them achieves my objective. Pls help me on this.

Thanks,
Steve
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
onkeydown onkeyup onkeypress
 
I'm so happy! And I wish to make this tiny ad happy too:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic