Guest User

Untitled

a guest
Feb 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. jQuery('select[name*=product_type_id]').each(function() {
  2. console.log(jQuery(this).val());
  3. // these categories won't have products associated to them
  4. // MAKE SURE the ids stay the same
  5. if ( jQuery.inArray(jQuery(this).val(), ["4", "6", "7"]) )
  6. // hide the product_id select parent, p in this case
  7. jQuery(this).parent().next().hide();
  8. });
  9.  
  10. // NOTE TO SELF
  11. // SLOW THE FUCK DOWN! RTFM. RTFM AGAIN. AND AGAIN.
Add Comment
Please, Sign In to add comment