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

#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(‘‘)