Jump to content

how to enable dynamic form fields if JS turned off.


jasonc

Recommended Posts

I have a form that only shows the submit (update) buttons if the value select field beside it is changed. But what is someone has JS disabled, how can I enable them?

<select title="3553" name="3553" onchange="JavaScript:document.cart.add3553.disabled=false;">

Link to comment
Share on other sites

Having re-read me own post, I realised I was asking the question the wrong way around.

 

What I should be asking is how do I set only the 'update' submit buttons, only the buttons within a certain form called 'cart', to 'disabled'

 

My page can have two forms and on certain pages up to three forms, each form of course has a different name.  So I do not want to disable every submit button on the page, only those within the form called 'cart'

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.