문제

I am trying to use a simple docpad skeleton to set up a form that in turn is validated. I guess this is me not using docpad correctly, as the validation javascript and forms-html is copied from bootstrapValidator.

html-file in my out folder

val.js: pastebin.com/kfg3CKKj

default.html.jade: pastebin.com/kWVAtBEz

When i click the "submit"-button on my form it seems that the page is refreshing, without validation. I've also tried with jquery.validate. Same result.

도움이 되었습니까?

해결책

The problem was that my jquery-selector was wrong.

 $('defaultForm').bootstrapValidator({

should be

 $('#defaultForm')').bootstrapValidator({
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top