Hi i have a jquery function which executes when a button is clicked, i also need to execute this function from my code behind based on whether an Item has a comment attached to
Not sure exactly what you are asking, but I'm guessing its just how to manually call this method..?
$(selector).click();
The problem you will have is that its not an ID, its a class. So in my example you'd have to update the selector to find the exact commentsnr that you want to 'click'