i need my ratio buttons, when clicked, to change my main product image. each button changing the main image into a different image. but i'm unable to use the value="" in the input as it has a variable already. i need about 13 ratio buttons.
First, you would probably be better off using a drop-down select if you are gonna have 13 different ones. 13 _radio_ buttons won't by any criteria look good.
yer that was an option i was considering is there anything anybody can think of that will help coding wise?
Hi, just a hint : in your form add something like : <input type="radio" onclick="setImage('p1.jpg')" />Product #1 <input type="radio" onclick="setImage('p2.jpg')" />Product #2 .... <input type="radio" onclick="setImage('p13.jpg')" />Product #13 I expect the main product image is always on one place, you just need to switch them, right? so there could be somewhere IMG tag + add there some ID <img src="default_product.jpg" id="pic" /> then in javascript file or block inside HTML define function setImage(image_url) function setImage(image_url) { var product_image = document.getElementById('pic'); //here you reference the IMG tag ID product_image.src = image_url; } It is not the only way of doing this, just wanted to show you possible solution in rather simple way. Hope it helps