I am trying to get the jquery equvaliant of this javascript
var id = $(this).parent().parent().parent().attr("id");
document.getElementById(id).getElementsByClassName("addcomment")[0].style.display = 'block';
but its not working
$('#+id+' '.addcomment').css('display','block');
Any suggestions ?
as a sidenote in the page you should have only one element with that id, so
should works too (of course only if classname it’s not necessary to target it, since this is a different selector)