javascript - Happy validation issue -
i'm using happyjs form validation, can't seem create work.
i have coffeescript like:
jquery -> $(document).ready -> $("#new_store").ishappy fields: "#store_name": required: true message: "there needs name here"
and html like:
<form id='new_store'> <input id="store_name" type="text" /> </form>
here's jsfiddle
try this updated fiddle, works me. $("#new_store").ishappy fields: "#store_name": required: true message: "there needs name here"
the problem fiddle seems you're using raw github url hotlink happyjs file. utilize rawgit instead. also, see answer.
javascript jquery html validation coffeescript
No comments:
Post a Comment