0

I'm trying to create a program where I need to fire events whenever the text in a text box is changed. Here's the code written for it:

$("#text_box").change(new Function(){
        public void f(){
            ....
        }
    });

But I need to get the details of the event - such as - the character that was entered. There is no object passed through the GQuery API to send that information.How can I get these details?

EternallyCurious
  • 2,345
  • 7
  • 47
  • 78

1 Answers1

0

Just override the method f(Event e)

$("#text_box").change(new Function(){

    public void f(Event e){
        ....
    }
});
jdramaix
  • 1,104
  • 6
  • 9