So it works backwards.
<input type=”text” id=”username” disabled=”disabled” /><br />
<input type=”password” id=”password” disabled=”disabled” /><br />
<input type=”submit” id=”login” value=”login” disabled=”disabled” />
If you have a form that is disabled, then reenable it by setting disabled property back to false.
var login = document.getElementById(‘login’);
Clean up any opacity or other styling/functions you have set in the case of a failure.
That’s a really good idea! I’m going to play with it.
To get around the possiblity of a visitor w/ JS enabled or not, (my friend Rick only this year upgraded from using WebTV as his browser, hah hah!) I just tried to put in alternate noscript code that degrades cleanly so if you don’t have JS, everything is still accessible. But this is a nice way to selectively let JUST those people know they aren’t fully seeing everything on that page w/o JS. I’d had disclaimers put up too (this site looks best…) but to me that looks sloppy.
Btw, thanks for visiting my site and the friendly tips! Since you added my site as a link, feel free to email me if you have a banner and I’ll add it to my Friends of Specialty Gamer page. 🙂