jqueryasp.net-mvcjquery-jtable

How to use jquery Select2 in jtable


I just using jQuery jtable in mvc application, and use cascading dropdown, I want to use select2 in a dropdown, How can I use It?


Solution

  • I'm not working with jTable but i think can use jtalbe callback function on load.Try this code

    $('.your-table').jtable('load', undefined, function(){
      $('.your-table').find('select').select2();
    });