I simply want to manipulate the elements within the #content div, but $(\'#content\') doesn\'t seem to work, and yet in other places it does! My relevant code i
$(\'#content\')
you can get id by by using .attr("id") function. Use this code: $("#content").attr("id");