I am implementing a discussion panel in ASP.net, in which I am assigning the comment id to the comments.
I want to call the jQuery click function on every comment click event. How I call the click function because in comment div I am assigning the ids 1,2,3…. and I don not know the range so I can not use $("#1 || #2").click().
Assign the same class to each of the comment divs and then do $(“.commentdiv”).click
jQuery is awesome like this.
If you need to know the id of the element that was clicked later, you can get it through this.id.