PDA

View Full Version : How to disable a checkbox.


Jakeke
03-02-2009, 11:18 AM
Hi,

i have 2 checkboxes on a page, and i was wondering how you disable one checkbox if the other one is clicked.
Delivery
<input type="checkbox" name="NAME">
Collect
<input name="NAME" type="checkbox">

this is what i have so far, and i can currently tick both of the boxes at the same time, which is not what i want.

Also, i was wondering how you link a submit button to another page.

i currently have,

<input type="submit" value="Order" class="style8">

and I'm wondering what i else i need to type to link it to another page.

thank you for any help you can give me.

davidj
03-02-2009, 02:32 PM
why not use radio buttons

this is what they are used for

Corrosive
03-02-2009, 02:56 PM
why not use radio buttons

this is what they are used for

I'm sure there is a way to select only one checkbox (check the wizard when you insert one) but DJ is spot on. Radio buttons are the answer :)

Jakeke
03-02-2009, 03:45 PM
thanks guys. the radio button worked perfectly. for the submit button i just inserted a flash one which also works well.

thanks for your help