yii infinite scroller not working

i getting error in js as

$(#posts).infinitescroll is not a function

pls any body help me