jQuery form validation not working in Django -
have simple html form in django site.
see http://tinypic.com/r/2ce57rb/6
i want validate form on client side using jquery don't know jquery or javascript.so, downloaded form here http://alittlecode.com/files/jquery-validate-demo/
and copied files correct places , code same except minor modification name etc. know @ correct places because can see them source , using twitter bootstrap.
the problem no validation occurs after submit it.
the address bar looks after clicking submit http://127.0.0.1:8000/contact/?name=&email=&subject=&message=
please tried many plugins etc. none of them working!
i guess bootstrap/docs/assets/js/script.js incorrect or don't execute ready. conflict, use dojo, mootools or other ? try replacing $ involved form validation plugin jquery var :
$(document).ready(function() --> jquery(document).ready(function()
$('#contact-form').validate --> jquery('#contact-form').validate
Comments
Post a Comment