jquery select 点击 确认 提示 确定 弹窗 对话框 跳转 confirm

 

<select name="select2" class="email_notice">
    <option value="">指派给</option>
    <option value="6@qq.com">少威廉</option>
</select>

<script>
$(document).ready(function(){
    $('.email_notice option').click(function(){
        if(confirm('确定继续?'))
        {
            alert('确定');
       window.location.href="login.jsp";
        }else{
            return false;
        }
    })
});
</script>

 

confirm
<input class="form-control" type="submit" name='' onclick="return confirm('确定核对无误,已截图存证?')">

<a href="/ychadmin/borrow/sign_all/"  onclick="return confirm('确定?')">生成合同</a>

 

posted @ 2016-05-13 15:39  WilliamShaw  阅读(2079)  评论(0编辑  收藏  举报