javascript - parsley.js is not working in my Django form validation -
this code in django not show validation errors. missing syntax or tag?
<head> <link rel="stylesheet" type="text/css" href="/static/css/side_file.css"> <script type="text/javascript" src="/static/js/parsley.js"></script> <link rel="stylesheet" type="text/css" href="/static/css/side_file.css"> <script type="text/javascript" src="/static/js/parsley.js"></script> </head> <body> <form data-parsley-validate method="post"> {{form}} </form> </body>
<head> <link rel="stylesheet" type="text/css" href="/static/css/side_file.css"> <script type="text/javascript" src="/static/js/jquery.js"></script> # add jquery <script type="text/javascript" src="/static/js/parsley.js"></script> </head> <body> <form data-parsley-validate method="post"> {{form}} </form> </body>
Comments
Post a Comment