LEt's say there a certain phone number format. If someone types the correct format,it shows ok,if not it shows an error. I have done this but it only checks after user moves to the next textfield (onblur action). is there something like 'onButtonPress' or something

Recommended Answers

All 4 Replies

hai silvercats,

instead of onblur() use onkeyup() or onkeypress() for this requirement

check it once by adding any of the actions to the feild

let me know the status

happy coding

great.
onkeypress() is fine.

could you please mark this thread as solved if you got your answer

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.