posted 12 years ago
Hi everybody,
I have this piece of code which calls the charCounter() function anytime user enters any letter in the input. Its working properly:
Now I am trying to mimc the above code, sending the title and left objects instead:
I have defined the following objects:
I think 'a' and 'b' are correct objects b/c a.value and b.value are the correct values, so I send the 'a' and 'b' objects to charCounter() function and expect the charCounter() function gets called anytime user
enters any letter in the Title or Left fields. Following is how I tried to attach the even listeners to the objects, also call the function.
How can I fix this?