Enabling buttons on frontpage 2002

A

Adam 357

Hi

I am trying to find a way to have a submit button on a form that is greyed
out when the page is first loaded, but then when a checkbox is ticked the
button becomes enabled, and the form can be submitted.

Thanks
 
M

MD Websunlimited

Hi Adam,

Use JS and the enabled attribute.

<form>
<input type="checkbox" unclick="debugger;this.form.submit.disabled = false;" >
<input type="submit" name="submit" disabled="true" >
</form>
 
Top