View Full Version : <input
02-12-2008, 11:19 PM
Does <input tag have a description attribute? (I do not see it).
But I did see some codes like this:
<input type="text" name="test" class="maskable"
02-12-2008, 11:20 PM
W3 says no.
02-12-2008, 11:48 PM
Is that true the standard HTML tag allows a customerized attribute?
In the case I provided, <input id="test" description="abc"...
Actually, I saw the codes in working.
var desc = document.getElementById("test").getAttribute('description');
And it is working in a live application. But I just want to confirm if a standard HTML tag allows a customerized attribute in it?
02-12-2008, 11:50 PM
Its not valid coding but you can do it. If you aren't worried about validation then go for it. From the sounds of things you likely don't even know what validation means.
02-12-2008, 11:53 PM
If you want to start bad habits and go against the grain of the internet and all its standards then you can pretty much do whatever you want with today's browsers.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.