I had made one function for making pagination ,sorting and listing all in one and that function I call on load of page of body like
<body onload='MYFUNCTION(parm1,param2,param3)'>
Now i want to apply some jquery on the button which shows all document in fancybox which come by that onload but when i try to do on
$(function(){
$(#container).on('click','#button',function(){
//code here for load fancybox and getting all image stuff by ajax
});
});
than i not get that element because it cant find it on page load so what can i do
inshort - how to select element in jquery which is load after page load
Thank you..