Page 1 of 1

i need javascript to make this

Posted: Fri Jun 05, 2009 1:16 am
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

Re: i need javascript to make this

Posted: Fri Jun 05, 2009 11:57 am
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

Re: i need javascript to make this

Posted: Fri Jun 05, 2009 12:16 pm
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.