Enabling buttons on frontpage 2002

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top