Guest User

Untitled

a guest
Jan 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $(document).ready(function(){
  2. $('table.rep').each(function(){
  3. $(this + ' tr').each(function{
  4. // change style of this tr
  5. });
  6. });
  7. });
  8.  
  9. $(document).ready(function(){
  10. $('table.rep').each(function(){
  11. $('tr', this).each(function{
  12. // change style of this tr
  13. });
  14. });
  15. });
  16.  
  17. $(document).ready(function(){
  18. $('table.rep').each(function(){
  19. $(this).find('tr').each(function{
  20. // change style of this tr
  21. });
  22. });
  23. });
  24.  
  25. $('table tr').each(function(){
  26. // change tr style
  27. });
  28.  
  29. $('table.rep tr').each(function(){
  30. ...
  31. });
  32.  
  33. <script>
  34. $(document).ready(function () {
  35. $('table.rep').each(function () {
  36. $(this).find('tr').each(function () {
  37. // Do your stuff
  38. });
  39. });
  40. });
  41.  
  42. </script>
Add Comment
Please, Sign In to add comment