Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-22-2012, 05:07 PM #1
- Join Date
- Sep 2011
- Thanked 0 Times in 0 Posts
I am trying to get an alert when user type a digit in my textbox and i made this code:
<input type=text id=firstname />
<input type=button value=Submit onclick="allowed();" />
But when i click the button then nothing happen. Please help me. Thanks.
Last edited by sunnynosid; 02-22-2012 at 05:14 PM.
02-22-2012, 05:20 PM #2
- Join Date
- Jun 2002
- London, England
- Thanked 2,585 Times in 2,563 Posts
The <!-- and //--> comment (hiding) tags have not been necessary since IE3 (i.e. since September 1997). If you see these in some published script it is a warning that you are looking at ancient and perhaps unreliable code.
"I used to think I was poor. Then they told me I wasn't poor, I was needy. Then they told me it was self-defeating to think of myself as needy. I was deprived. (Oh well, not deprived but rather underprivileged.) Then they told me that underprivileged was overused. I was disadvantaged. I still don't have a dime. But, I have a great vocabulary." - Jules Feiffer, cartoonist.
Last edited by Philip M; 02-22-2012 at 05:24 PM.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Users who have thanked Philip M for this post: