I am new to Sharepoint. Now i am creating Application Page. My question is, i have a scroll function of 's4-workspace'. My jquery Vesion jquery-1.7.2.min.js
$(document).ready(function () {
$('#s4-workspace').bind('scroll', function () {
alert("Called");
});
})
My unbind code :
$('#s4-workspace').unbind('scroll');
But when i bind the same function it's not woking, Code is
$('#s4-workspace').bind('scroll');
Any suggestion would be helpful.
Thanks.
$('#s4-workspace').bind('scroll');
you are missing the handler:$('#s4-workspace').bind('scroll',handler);
where handler is the function you want to call – A. Wolff Sep 24 '13 at 13:56