I'm trying to get the parent of an id with an extra # in front of it, but it isn't working. = Does the '#' cause this to malfunction? Or is there something wrong with the jQuery?
HTML:
<li><a href="blah" id="#id"></a></li>
<button id="clickme">click it</button>
jQuery:
$('#clickme').click(function() {
('##id').parent().addClass('active');
});
Any help would be appreciated.