I can't tell you how much I would appreciate some help with this.
I am trying to have three buttons, so that visitors can press a button and display pricing in their preferred currency.
I understand how to do this with one column beneath But as you will see, when I am applying it to multiple columns, only the first one works (with the price switching when the button is clicked).
I understand that id's in html cannot be repeated, and that this is likely the source of the problem. However I do not know what to do to make the targeting work on something other than ID's.
I have pasted all of the code into this fiddle: http://jsfiddle.net/Rd7mV/ - note that the prices which should be changed are highlighted in red on the fiddle.
The javascript is here:
jQuery("#menu a").click(function () {
var link = jQuery(this).attr('href');
var showIt = jQuery(link);
var hideIt = jQuery(".cc.current");
hideIt.fadeOut(100, function () {
hideIt.removeClass("current");
showIt.addClass("current");
showIt.fadeIn(100);
});
});
Please, please if someone can help, this would be a lifesaver. I have searched high and low, and just really need some help on the implementation.
Thank you. AB.