Advertisement
YavorJS

01. Summary

Jul 17th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function summary() {
  2. let strong='';
  3. $(':button').click(function () {
  4. console.log('hi');
  5. strong=$('#content strong').text();
  6. let result=$('<div id="summary">');
  7.  
  8. $('#content').parent().append(result);
  9. $('#summary').append('<h2>Summary</h2>');
  10. $('#summary').append('<p>');
  11. $('#summary p').html(strong);
  12. })
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement