Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.   function get_cat() {
  3.     let $t = $(this), catID = $t.val();
  4.     let $next = $t.siblings('.subcat').filter(function() {
  5.       return $t.index() < $(this).index();
  6.     }).off('change').remove();
  7.     if (catID != '') {
  8.       $.get(location.href, { ajax: 1, subcat: catID }, res => $t.after(res));
  9.     }
  10.     return true;
  11.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement