通知js验证无效

时间:2017-11-05 22:45:58

标签: javascript php

我有这个javascript来验证数据是否已经插入数据库但似乎无法正常工作。会有什么问题?

var a = $("#EngagementID").val();
var b = $("#delete").val();

$('#save').on('click', function(e) {


    if ($("#EmployeeNo").val() !== "") {
        $.notify("You have successfully created a plotting.", "success");
    } else  {
        return false;
    }
}); 

1 个答案:

答案 0 :(得分:0)

如果你包括它应该工作的库

$.notify("You have successfully created a plotting.", "success");
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://rawgit.com/notifyjs/notifyjs/master/dist/notify.js"></script>