The problem is that input elements do not have an "onload" event. The specification shows the available events as:
onfocus %Script;
onblur %Script;
onselect %Script;
onchange %Script;
onclick %Script;
ondblclick %Script;
onmousedown %Script;
onmouseup %Script;
onmouseover %Script;
onmousemove %Script;
onmouseout %Script;
onkeypress %Script;
onkeydown %Script;
onkeyup %Script;
Since this does not seem like any of them will help you, it is probably best for you to add the event to the loading of the body element (or using more reliable means such as the jQuery ready document function). Here is a quick way to hack:
<body onload="document.getElementById('post-comment').disabled=false">
nickf source
share