Home › Forums › JavaScript › jQuery / :checkbox / :checked › Re: jQuery / :checkbox / :checked
June 17, 2009 at 11:03 am
#59260
Benjamin
Participant
"mattch" wrote:
Code:
if ($(‘.’ + color).length > 0) {
$(‘div.’ + color).remove();
$(‘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.