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
April 13, 2010 at 9:32 am
#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(‘‘);
});
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.