getting values of non-standard attributes

Category: Web Questions    |    5 views
Is it possible to get the value of a non-standard attribute in firefox?
I am trying to capture the value of attribute required. In IE I am able to get the value using document.form.required but in firefox it just returns undefined.

<html>
<head><title></title></head>
<body>
<form id="form" name="form">
<input type="text" name="txt" id="txt" value="val" required="1" />
</form>
</body>
</html>

Thanks in advance.

Share/Save/Bookmark

1 Star2 Stars
Loading ... Loading ...

0 responses so far!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word