var strongContent = $(‘strong’).html();
var pContent = $(‘p’).html();
The first line gets the HTML content inside the strong element and stores it in the strongContent variable. The second line stores the content of the p element in the pContent variable. Now that you have the content from each element, you need to set it in each element.
I'm Junaid, partial blogger and SEO speaker along with programmer :) Creating tutorials is fun, and I'm on the way don't forget to join me on other social media.
Website: http://wikia.pk
/ junaidshahidofficial
https://plus.google.com/+JunaidShahid1
/ mrjunaidshahid
Blog:
https://junaidshahid.com
Keyword Rank Videos:
http://bit.ly/2rRpphr
How Do You Do Blogging Series:
http://bit.ly/2s4iAsR
JavaScript Tutorials
http://bit.ly/2zMEplJ
CSS Tutorials
http://bit.ly/2iwx5GO
HTML Tutorials
http://bit.ly/2gEkv7E