How do I send certain buttons to the background and/or disable them depending on what a user chooses? Let's say a user clicks, "iphone 3GS" and all the buttons are enabled and able to be clicked but if, "iphone 4" is chosen then the, "unlocked" button is sent to the background/disabled. If possible, can if statements be used for this function? if ("iphone4") disable ("unlocked, AT&T"), for example. I'm open to jquery but I'm not to familiar so a little detail must be included telling me how to use it.
Here's the jsfiddle: http://jsfiddle.net/nwxLM/
Here's a portion of the script:
if (q1 == "AT&T" && q2 == "8GB" && q3 == "Black" && q4 == "Black") {
$('#next_button').val('att 8gb black').click(function () {
window.location.href = 'http://google.com/'
});
Here's a portion of the HTML:
<div class="radio" id="form">
<div class="tablebuttons" type="radio" name="q4" value="iPhone-3GS">
<img width="50px" height="50px"
src="http://wepriceit.webs.com/Images/iPhone-3GS.png" />
</div>
The full code is in the jsfiddle located above.