Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(count == 1)
- $('div.wrapper .wrapper_item').each(function (e) {
- var count = $( this).index();
- alert(count);
- if (count == 1) {
- alert('TRUE');
- }
- else {
- alert('FALSE');
- }
- });
- $('div.wrapper').each(function (e) {
- var count = $('div.wrapper_item', this).index();
- alert(count);
- if (count == 0) {
- alert('TRUE');
- } else {
- alert('FALSE');
- }
- });
- if ($(this).is(':first-child')) {
- alert('TRUE');
- } else {
- alert('FALSE');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement