Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Sure.
    Something like this.

    //Html
    <select>
    <option value="portfolio" data-post-type="portfolio" data-button-label="Load Some More ">Portfolio</option>
    </select>
    // Jquery
    $( "select" ).change(function() {
      // Trigger ajax load more
    var data = $(this).find(':selected').data(), // Get all data attributes
        transition = 'fade', // 'slide' | 'fade' | null
        speed = '300'; //in milliseconds
        $.fn.almFilter(transition, speed, data); // reset Ajax Load More (transition, speed, data);     
    
    });

    Let me know if this works.

    Thread Starter bigkahunaburger

    (@bigkahunaburger)

    Yes that worked. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filtering Select Box’ is closed to new replies.