Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. `<select class="type-featured" data-featured="normal">`
  2. ....
  3. `<select class="type-featured" data-featured="classical">`
  4. ....
  5. `<select class="type-featured" data-featured="modern">`
  6.  
  7. $('.style-wrapper').each( function() {
  8. var $styles = $(this);
  9. if ( $styles.parents().find('select').is('.type-featured [data-featured=normal]') ) {
  10. // do something here
  11. }
  12. });
  13.  
  14. .is( function() {
  15. //here some logic to result
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement