javascript passing form attributes
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

javascript passing form attributes

From: Andy <andy>
Date: Wed Dec 21 2005 - 12:34:08 CET

Hi,

Have just found a bug in Netscape for some of my Javascript code - works ok
in Internet Explorer. Given the following form element:

<input type="text" compulsory = "yes" name="an_el">

I thought it was possible to display the value compulsory similar to getting
the value of the box, E.G .

"an_el.compulsory" instead of "an_el.value"

It seems not in Netscape / Firefox- does anyone know a way round this? - I
need to know from a different part of the code which fields are compulsory
so I can validate them.

Andy.
Received on Fri Dec 23 20:28:22 2005