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
try this
Page.ClientScript.RegisterStartupScript(typeof(String), btnID,"$('.commentsnr').live("click", function () { $li = $(this).closest('li'); $li.find("#commentload").slideToggle(300);});", True);