阅读背景:

.on(“click”,function()在使用ajax呈现的链接时不起作用

来源:互联网 

The link below shows a modal and runs an ajax request to render a partial within the modal based on the object id . The link works fine and the modal pops up when the page is fully loaded with an http request, but if I render the link with an ajax request (e.g. a different modal pops up and renders a few of the links) then the js function doesn't run. I tried an alert(); just to check and it doesnt run when its rendered with ajax.The link below shows a modal and runs an ajax r




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: