Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Pulling text out of a P tag and putting it into a text area Re: Pulling text out of a P tag and putting it into a text area

#73843
David Coxsey
Member

So, I tried that and nothing came of it. Here is the code I have now:

Code:
$(‘.displayAnswers’).click(function(){
window.location = $(this).find(“p”).text();
$(‘p’).text.clone().append(‘‘);
});

What happens when you click on this you get a 404 error. I tried it with out the second line, but then nothing happens on the site.