changing the disabled property of a submit button?

wxdqz

New Member
Hi,

I have the following JavaScript function :

function changeDisabled(formname,elementname)
{
document.formname.elementname.disabled = false
}

and it's referenced from my web page like so :

<form>
<input type="radio" name="Quote" value=http://www.webdeveloper.com/forum/archive/index.php/"1" onclick="changeDisabled(this.form,Submit)" />
<input type="submit" name="Submit" value="Next" disabled="true" />
</form>

Now when the radio button is clicked, there will be more than one, I want the submit button to be enabled. For some reason this isn't working at the moment. But then I don't really know a lot about JavaScript, and I just cobbled this together from various places.

Anyone know how to do this for me?

Thanks,

Adam
 
Back
Top