daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top