I have some div's dynamically loaded with javascript and I want to get the text from those div's and append them into an existing div.
So, here's my code :
var firstoption = jQuery( ".myo-poll-bar.firstoption" ).text();
var secondoption = jQuery( ".myo-poll-bar.secondoption" ).text();
jQuery( ".votefilters span a:first" ).html( firstoption );
jQuery( ".votefilters span a:last" ).html( secondoption );
I know that there is an .append() method but I don't know how can I use it in this code.
Any suggestions are welcome.
Thank you !