I\'m using twitter bootstrap\'s modal popup.
14条回答 夕颜 (楼主) 2020-12-02 05:04 I wanted the AJAX loaded content removed when the modal closed, so I adjusted the line suggested by others (coffeescript syntax): $('#my-modal').on 'hidden.bs.modal', (event) -> $(this).removeData('bs.modal').children().remove() 0 讨论(0) 查看其它14个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
I wanted the AJAX loaded content removed when the modal closed, so I adjusted the line suggested by others (coffeescript syntax):
$('#my-modal').on 'hidden.bs.modal', (event) -> $(this).removeData('bs.modal').children().remove()