Forums

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

Home Forums JavaScript proper .append() syntax Re: proper .append() syntax

#70705
Chris Coyier
Keymaster

I can’t tell exactly from your code what you are trying to do, but it seems a bit like this:

Code:
$(‘#target’)
.append(‘‘)
.find(“a”)
.addClass(‘blue’);