use jquery as :last-child is not supported by IE8

Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

IE8 not support :last-child so use jquery as alternative

Use jquery to get last child and set css using jquery.

/*As :last-child css is not supporteed by IE8 so to overcome we use this jquery script*/
$(document).ready(function () {
$(‘.crumb ul’).children().last().find(‘.crumb-item-right’).css(‘background’, ‘none’);
});


Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.