Forums

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

Home Forums JavaScript Copy element and place it elsewhere. Re: Copy element and place it elsewhere.

#92412
jamygolden
Member

@MaikelMaikel, with jQuery I would do something like this:

var username = $('.conl').find('strong').text();
$('#input-box-id').attr('value', username);