Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if(count == 1)
  2.  
  3. $('div.wrapper .wrapper_item').each(function (e) {
  4. var count = $( this).index();
  5. alert(count);
  6.  
  7. if (count == 1) {
  8. alert('TRUE');
  9. }
  10. else {
  11. alert('FALSE');
  12. }
  13.  
  14. });
  15.  
  16. $('div.wrapper').each(function (e) {
  17. var count = $('div.wrapper_item', this).index();
  18. alert(count);
  19. if (count == 0) {
  20. alert('TRUE');
  21. } else {
  22. alert('FALSE');
  23. }
  24. });
  25.  
  26. if ($(this).is(':first-child')) {
  27.  
  28. alert('TRUE');
  29.  
  30. } else {
  31.  
  32. alert('FALSE');
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement