function boknytt(evid,hid,hnm,txt,avg) {$(document).ready(function() .
Now I had to add a confirm dialog on the page depending on some condition. I had to add RegisterStartupScript in code behind . But Its popping up at the beginning before $(document).ready function is not firing. How to make it fire before the confirm dialog shows up. I set jquery's LoadAfterUI to false and custom.js to true, now the document.ready works just fine even without the spBodyOnLoadFunctionNames call!
This is important because jQuery (and JavaScript generally) cannot select a DOM element that has not been rendered to the page. . .