this should be researched in the javascript archives:
google -> groups -> javascript
this is probably what you want
var mytest = document.myform.myfield.value;
if( mytest.toString() == "" )
alert( "No text in " + document.myform.myfield.name );
but i would suggest getting on that group
Same problem, I still get an undefined error.
> Try using the string functions.
>
> document.myform.mytextfield.value or something...
>
> On Thu, 2002-11-21 at 13:25, PHP List wrote:
> > Hi,
> > This is more of a Javascript question so please forgive.
> >
> > I generate a dynamic form with php.
>
Try using the string functions.
document.myform.mytextfield.value or something...
On Thu, 2002-11-21 at 13:25, PHP List wrote:
> Hi,
> This is more of a Javascript question so please forgive.
>
> I generate a dynamic form with php.
>
> I need to be able to test in javascript if a certain field
3 matches
Mail list logo