Forums

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

Home Forums JavaScript Jquery clone & append Reply To: Jquery clone & append

#286563
Shikkediel
Participant

Okay, I misunderstood. This then perhaps?

$(this).next('h4').clone()

Here’s a more complete version:

$(this).next('h4').clone().prependTo('.mfp-bottom-bar').find('br').replaceWith(' ');