adding onclick event to dynamically generated array of element jquery

后端 未结 3 821
北恋
北恋 2021-01-28 11:30

I have a dynamically generated thumbnail images on the left side of my popup and on click of the image i want that image to be displayed on the right hand side.

I am usi

3条回答
  •  -上瘾入骨i
    2021-01-28 12:06

    Please move the sliderimage() function outside of Ajax call

     $.ajax({  
     });
    
     function sliderimage(image){     
       alert("sdf");
       alert(image);
     }
    

提交回复
热议问题