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 12, 2010 at 7:59 pm
#73834
noahgelman
Participant
I think this should do it. The p tag at the beginning is the paragraph you want to target and inside the append is the opening and closing tags of your text area that you want to target. Tell me how it goes.
Code:
$(‘p’).text().clone().append(‘‘)