i need javascript to make this

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
kamsmartx
Forum Newbie
Posts: 21
Joined: Mon Apr 21, 2008 10:03 am

i need javascript to make this

Post by kamsmartx »

hi
i wont javascript to make ensure that the enter on this

Code: Select all

           <input name="FullName" type="text" maxlength="30" onFocus="change(this);"  onclick="change(this);" style="font: 10pt Tahoma; width: 300px" size="20" />
is string

if the user enter number we must not enter the value
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: i need javascript to make this

Post by kaszu »

And I want Ferrari. Post some code what you have tried and were you had problems.
Quick start:
check value on blur event or on forms submit event (see: viewtopic.php?f=13&t=101147 for an idea how to do it),
to make sure there are no numbers you need to use regular expressions
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: i need javascript to make this

Post by mikemike »

You also need to do it in server-side scripting (PHP) assuming you're doing something server-side with the data. Otherwise I can just turn javascript off and put in anything I want and it will be accepted.
Post Reply