Hi,
does anyone know why this code works in Chrome and Firefox but not in IE9, IE8 and IE7:
- jQuery(document).ready(function($){
- // bind to the change event of the state select in the checkout form
- $('#add_submit').one("click", (function(){
- // display a message indicating that we're updating the tax cost
- $('#cart_total').html( 'Dodajem...' );
- $('#items_in_cart').html( 'Dodajem...' );
- $('#entry_id').val( $("#add_entry_id").val() );
- $('#quantity').val( $("#add_quantity").val() );
- // use the jquery form plugin method ajaxSubmit to send the form
- $('#my_add_to_cart_form').ajaxSubmit({
- success: function(data) {
- // load the updated tax value back into the page
- $('#cart_total').load('{path=embedi/cart_total}');
- //$('#items_in_cart').load('{path=embedi/items_in_cart}');
- //$('#header').load('{path=embedi/header}');
- $('#cart_za_desno').load('{path=embedi/cart_za_desno}');
- if ($('#cart_total').is(':hidden')){
- $("#cart_total")
- .css('top','-61px')
- .css('display','block')
- .animate({"top": "+=24px"}, "slow");
- };
- }
- });
- }));
- });
I get no errors. This is for adding items to shopping cart, and in IE it just doesn't add items to cart.
Thanks