Guest User

Untitled

a guest
Jan 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. $('document').ready(function() {
  2.  
  3. */ where the p tag has a clsss /*
  4. $("p[class]").css("color",#f00);
  5.  
  6. */ where p tag has a class or RedText /*
  7. $("p[class=RedText]").css("color",#f00);
  8.  
  9. */ where the p tag has a clsss that starts with Red /*
  10. $("p[class^=Red]").css("color",#f00);
  11.  
  12. */ where the p tag has that starts with Red and an id /*
  13. $("p[class^=Red][id]").css("color",#f00);
  14.  
  15. });
Add Comment
Please, Sign In to add comment