Announcement

Collapse
No announcement yet.

a little help with jquery

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • a little help with jquery

    I am using the html 5 templates I have lots of items that have quantity discounts. Right now you have to click quantity discount to have them show. But I need them to show always how can I correct this code to display the quantity pricing tables automatically? Any help would be very appreciated.


    //Show/Hide 'Quantity Pricing' Table
    jQuery('#showQtyTable').on('click', function() {
    jQuery('.quantity-table').slideToggle();
    });

  • #2
    solved

    I figured it out : )


    }
    //Show/Hide 'Quantity Pricing' Table
    jQuery('#showQtyTable').ready(function() {
    jQuery('.quantity-table').show();
    });

    Comment


    • #3
      Hi Joe (nice username!) Thank you for sharing your solution.

      Has anyone else fixed this by removing the jQuery business altogether? Changing it to show means there is still a "quantity pricing" link there, which may be confusing to customers and looks a little funny. I'm hoping to just remove the link completely and have it display the quantity table by itself.

      Comment


      • #4
        just make sure it looks like this and it will show all the time

        }
        //Show/Hide 'Quantity Pricing' Table
        jQuery('#showQtyTable').ready(function() {
        jQuery('.quantity-table').show();
        });

        Comment


        • #5
          emilybeads If you remove the following the link will go away and, as you suspected, you can also remove the whole jQuery script if you want to always have your table open.

          HTML Code:
          <a href="javascript:void(0);" id="showQtyTable"><i class="icon-down-open"></i> [product_Header-quantitypricing]</a>
          HTML Code:
          //Show/Hide 'Quantity Pricing' Table
          jQuery('#showQtyTable').on('click', function() {
              jQuery('.quantity-table').slideToggle();
          });

          Comment

          Working...
          X