Enabling buttons on frontpage 2002

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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>
 
Back
Top