Basically I want to show the buttons for iPhone3GS when clicked and when iPhone4 or another button is clicked the other buttons go back into hiding. Each form has a class in the body saying iPhone 3GS, iPhone4, and so on. So when iPhone3GS is clicked it will show the iPhone3GS contents. It doesn't matter if it's jQuery or javascript, I just want it to work.
Here's the jsfiddle: http://jsfiddle.net/wLY7C/4/
Here's a piece of the javascript (I'm aware that this code is not valid; just an example):
if (q1 == "iphone3gs")
{
$('.show(iphone3gs)').val('.hide(iphone4 iphone4s iphone5 iphone5s)').click(function ()
{
window.location.href = 'iphone3gs'
});
}