I want to select the element by ID with a variable.

I want to select the element by ID with a variable.

I want to select the element by ID with a variable. Is it possible?

<div id="comment_132"> some value </div>

<script>
var n=132;
alert( $("#comment_"+n).html() ); // Why it's not working??

</script>