jQuery quicksand plugin with .click method

前端 未结 1 1796
栀梦
栀梦 2021-01-07 00:00

I\'m attempting to add this .click function to each image I\'m sorting with the quicksand plugin for jQuery

$(\'li img\').click(function() {

    var vertica         


        
相关标签:
1条回答
  • 2021-01-07 00:43

    Instead of .click use .live('click',function(){}); This will re-bind to the event as they're being moved/cloned throughout the DOM (as long as your selector doesn't change).

    0 讨论(0)
提交回复
热议问题