简体   繁体   中英

correct sequence of including .js files for client side mvc validation

these .js files i included in my .aspx

<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script> 
<script src="../../Scripts/Plugins/jqGrid/grid.locale-en.js" type="text/javascript"></script>
<script src="../../Scripts/Plugins/JqGrid/jquery.jqGrid.min.js" type="text/javascript"></script>

<script src="../../../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script> 
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

<link href="../../Content/Css/JqGrid/ui.jqgrid.css" rel="stylesheet" type="text/css" />

i am getting error "invlid label" in jquery.. min.js

is there any correct sequence in which files are included. please let me know if am wrong somewhere ....

thanx in advance

try to include jquery.min.js before including it's plugins. Because plugins uses jquery and invalid label is not due to the order of including.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM