Choose 4th list item change color to gray


/ Published in: jQuery
Save to your folder(s)

Choose the 4th list item and change the background color to gray


Copy this code and paste it in your HTML
  1. $('li:nth-child(4)').css('background', 'gray');

URL: http://tutsplus.com/lesson/jquery-30-days-quiz-1/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.