jQuery ui.draggable does not Call custom Function

前端 未结 2 1240
既然无缘
既然无缘 2021-01-24 03:32

I have a javascript function showAlert(). There is a draggable image. After the drag is stopped, we need to show the alert. Its not working How do we correct it?



        
相关标签:
2条回答
  • 2021-01-24 03:59

    The image is run on server, so the render ID is different, and the script not found it to use it: Change the javascript

    $("#<%=d1.ClientID%>").draggable(
            {
    

    OR change the image, remove the run=server

    <img src="MyIMages/RedSquare.jpg" alt="" id="d1" />
    
    0 讨论(0)
  • 2021-01-24 04:07

    I tried with the jquery UI libraries and it worked http://jsfiddle.net/5HyyP/

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