Urgent: restrict textfield events on reaching its maxlength

M

Muralidhar

I've a textfield whose maxlength=1,which takes values as 'Y' and ' '(a
blank space).On

entering some data in this field, onkeypress and onkeydown events are
fired.When the field

already consists of ' '( a blank space) as its value, on again taking
focus into it and

pressing enter or some other key, the above events are fired.I do not
want these events to be invoked if the field consists of ' ' as its
value.How to restrict firing these events when its maxlength is
reached? Can anyone help me out in this matter.

Thanx in advance
Murali
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,573
Members
47,205
Latest member
ElwoodDurh

Latest Threads

Top