What im trying to do is use jQuery to get the ID/CLASS of a selected image that each have their own unique class (i.e image-1, image-2, etc etc) and having jQuery display a custom value that I tell it to display within another div based on their select.
So far I have:
<div class="amconf-images-container" id="amconf-images-135">
<img id="amconf-image-66" src="media/amconf/images/66.jpg" class="amconf-image amconf-image-selected">
<img id="amconf-image-216" src="media/amconf/images/216.jpg" class="amconf-image">
<img id="amconf-image-218" src="media/amconf/images/218.jpg" class="amconf-image">
</div>
And trying to use jQuery:
jQuery(function(){
var div = jQuery('.selectedimage')[0];
jQuery("img#amconf-image-66.amconf-image amconf-image-selected").bind("change keyup", function(event){
div.innerHTML = this.value = "Black";
}); });
Multiple times to get each individual possible selection. Unless theres a more efficient way to do this without conflicting with magento's prototype, and own scripts?
Thanks!