jQuery css method using nth() css filter


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



Copy this code and paste it in your HTML
  1. $('section:nth(1) p').css('color','red');
  2.  
  3. $('.square').css({
  4. 'width':'100px',
  5. 'height':'100px'
  6. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.