weixin_33728268 2014-01-16 06:24 采纳率: 0%
浏览 26

单击复选框重新加载div

Is it possible for me to reload a div when a checkbox in the same document is clicked?

<html:checkbox property="checkbox" styleId="checkbox">
<div id="divToBeRefreshed">
    //content
</div>

I'd rather do it using pure javascript but ajax is ok too if there isn't another solution.

  • 写回答

3条回答 默认 最新

  • weixin_33713707 2014-01-16 06:27
    关注

    try this

     $("#checkbox").on('change',function(){
           $("#divToBeRefreshed").html('your content');
     });
    
    评论

报告相同问题?