I am trying to add add a button called shopping cart to my Tabs script. The new button is controlled if a checkbox is clicked. (Show). Im confused why the image is not showing. Any answers would be helpful.
Thank you.
$(function() { var $tabs = $('#tabs').tabs({cookie:{expires:1}});
$(".ui-tabs-panel").each(function(i){ var totalSize = $(".ui-tabs-panel").size() - 1;
var prevImage = "custom/images/prev.png"; var nextImage = "custom/images/next.png"; var atcImage = "custom/images/cart.jpg";
if (i != 0) { prev = i; $(this).append("<img href='#' class='prev-tab mover' rel='" + prev + "' src='" + prevImage + "'></img>"); } if (i != totalSize) { next = i + 2; $(this).append("<img href='#' class='next-tab mover' rel='" + next + "' src='" + nextImage + "'></img>"); } if (i > 1) { atc = i + 2; $(this).append("<img href='#' class='atc-tab mover' rel='" + next + "' src='" + atcImage + "'></img>"); } $('input[name=FIELD_469]').click(function() { if (this.checked) { $("img[src*=cart]").show(); } else { $("img[src*=cart]").hide(); } });