Forum Moderators: open

Message Too Old, No Replies

Condition for 2 buttons

         

shammi007

8:39 am on Oct 2, 2014 (gmt 0)

10+ Year Member



I would like to create a condition, if the user selects Radio button A, the button will be this one.

<input type="button" disabled="disabled" name="next" value="Proceed to Payment" onclick="window.location='shipping.php#openModal'"/>
but when user selects Radio button B, the button will automattically be.

<input type="submit" disabled="disabled" name="order" value="Proceed to Checkout"/>
how do i do that? thank you

mw11

5:09 am on Oct 20, 2014 (gmt 0)



If you're writing your own code, then you've got a lot of freedom as to how to re-code that site.

May I suggest that, from a user's perspective, the 2-step process of using the combination of a radio button and the additional button is, or appears to be an obsolete, slow and annoying process.

Therefore, unless there is someone holding a gun to your head, the use of radio buttons and additional buttons should be avoided, and avoided as much as possible!

[edited by: Ocean10000 at 1:27 pm (utc) on Oct 20, 2014]
[edit reason] TOS [/edit]