Forums

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

Home Forums JavaScript jQuery / :checkbox / :checked Re: jQuery / :checkbox / :checked

#59260
Benjamin
Participant
"mattch" wrote:
Code:
if ($(‘.’ + color).length > 0) {
$(‘div.’ + color).remove();

Can you please explain that part a bit more? What does ‘.’ mean?

UPDATE: Ah, I see…you were writing a div with a class if the box is checked and looking for and removing if it is unchecked.