Javascript jQuery验证甚至不起作用(作为最后手段询问)

Javascript jQuery验证甚至不起作用(作为最后手段询问),javascript,jquery,validation,Javascript,Jquery,Validation,使用jQuery验证插件验证表单时遇到问题。它不是在验证客户端 HTML: 我已经包括了相关的https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js在我的标题中,在“text/javascript”src=”之后https://code.jquery.com/jquery-3.2.1.min.js 是的,两者都在脚本标记内,并且位于src属性之后 请注意,这个表单元素位于引导模式内 编辑:控制台报告0个错

使用jQuery验证插件验证表单时遇到问题。它不是在验证客户端

HTML:

我已经包括了相关的
https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js
在我的标题中,在
“text/javascript”src=”之后https://code.jquery.com/jquery-3.2.1.min.js

是的,两者都在脚本标记内,并且位于
src
属性之后

请注意,这个
表单
元素位于引导模式内


编辑:控制台报告0个错误

“我在验证我的表单时遇到问题”…到底是什么问题?是否有任何错误?某些输出是否与您预期的不同?我看不到此元素
AddNoteForm
可能
$('[name=“AddNoteForm”]')
应该是
$('[name=“AddNoteForm”])
$(“#addNoteForm”)
?很抱歉,我的错误。我想补充一点,我已经使用$(“#addNoteForm”)作为选择器,但它仍然不起作用。此外,我的控制台没有报告任何错误
<form name="addNoteForm" class="form-horizontal" id="addNoteForm" action="addOrderNote.php?OrderID=<?php echo $OrderID; ?> method="POST">                                
    <div class="control-group <?php echo!empty($onNotesError) ? 'error' : ''; ?>">
        <label class="control-label"><strong>Notes (Max 500 chars):</strong></label>
        <div class="controls">
            <textarea id="addNotesNotes" name="onNotes" rows="10" cols="300"><?php echo!empty($onNotes) ? $onNotes : ''; ?></textarea>
            <?php if (!empty($onNotesError)): ?>
                <span class="help-inline"><?php echo $onNotesError; ?></span>
            <?php endif; ?>
        </div>
    </div>
    <button type="submit" class="btn btn-success">Submit</button>
</form>
$(function()
{
    $('#addNoteForm').validate
    ({
        rules:
        {
               onNotes: "required"
        },

        messages: 
        {
              onNotes: "bdfbdfghdfge!"
        },

        submitHandler: function(form)
        {
             form.submit();
        }
    });
});