Guest User

Untitled

a guest
Aug 10th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. An easy jquery code I am missing somehow as a jquery novice
  2. $(document).ready(function(){
  3. $('dd').xyz('<div class="clear"></div>'); // what will be this xyz function
  4. });
  5.  
  6. <dl>
  7. <dt>A</dt>
  8. <dd>AA</dd>
  9. <dt>B</dt>
  10. <dd>BB</dd>
  11. </dl>
  12.  
  13. $(document).ready(function(){
  14. $('dd').after('<div class="clear"></div>');
  15. });
  16.  
  17. $(document).ready(function(){
  18. $('dd').each(function(){
  19. $(this).after('<div class="clear"></div>');
  20. });
  21. });
Add Comment
Please, Sign In to add comment