The saying goes" if something can be done, it probably can be undone as well". Well, thank God that is the case with the disabled attribute.
Let's take our very first example to illustrate the concept:<form> <input type="text" size="20" value="Can't submit this!"> <input type="submit" value="Submit" name="B1" disabled="disabled"> </form>
So, to access the above disabled attribute, I would first slap on a name for both the <form> and <input> tag, and take it from there:
<form name="test"> <input type="text" size="20" value="Can't submit this!"> <input name="test2" type="submit" value="Submit" name="B1" disabled="disabled"> </form> <script> //accesses the disabled property document.test.test2.disabled </script>
Nothing an average person can't follow, right?
The script used to accomplish this is quite simple, really:
A more elegant way to do the same thing as above would be:
I don't care how you do it...just know how to do it!