Announcement

Collapse
No announcement yet.

Coding Question

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

  • Coding Question

    We do not want our quantity discounts to be a toggle option. We would like them to show all of the time.

    I found this piece of code, but can't seem to get it to do quite what I want it to do.

    If you have any suggestions, I would appreciate it.

    jQuery('#showQtyTable').on('click', function() {
    jQuery('.quantity-table').slideToggle();
    http://www.pack-secure.com

    Packaging and Shipping Supply Specialists

  • #2
    I'm going to assume this code snippet is something you found within your store and it is in fact what is doing the show/hide toggle you are trying to do away with.

    If you just want it to flat out show on the first click and never go away again (if I understand your question correctly) then simply change slideToggle() to show();

    ..or if you like the slide effect to stay.. slideDown() will be what you want instead of show(); You do not need them both.

    Comment

    Working...
    X