...

View Full Version : Javascript function, please help me



apitmanu
07-08-2012, 07:37 AM
Hello,

How to build a simple js function that, if a text field's max char is 10. Then, after the char on text field is reach 10, automatically pop out alert. Help me please. :o

Philip M
07-08-2012, 09:27 AM
Hello,

How to build a simple js function that, if a text field's max char is 10. Then, after the char on text field is reach 10, automatically pop out alert. Help me please. :o

As a general rule, the people helping out in this forum don't write code for others (especially code that appears to be for homework), but try to help with fixing code that doesn't work. You may perhaps get someone to write this script for you, but you'll be far more likely to get help if you have made a substantial effort and written some code yourself. Then someone here will almost certainly help you correct/improve your work.

Hint: use onkeyup to check the length of the field.

It is your responsibility to die() if necessary….. - PHP Manual



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum