Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function summary() {
- let strong='';
- $(':button').click(function () {
- console.log('hi');
- strong=$('#content strong').text();
- let result=$('<div id="summary">');
- $('#content').parent().append(result);
- $('#summary').append('<h2>Summary</h2>');
- $('#summary').append('<p>');
- $('#summary p').html(strong);
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement