Umbraco Form需要引用些客户端dependencies (jquery)
2016-07-26 11:47
489 查看
Preparing your frontend
In order to work correctly Umbraco Forms needs some client dependencies, being jquery, jquery validate and jquery validate unobtrusive.Adding the scripts to your template
Simply add those to your template these can be in the head or at the bottom of the page (if you add them to the bottom you'll need to perform an extra step).Easiest way to add the dependencies is to fetch them from a cdn (like http://www.asp.net/ajax/cdn). So simply add the following 3 scripts
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js"></script> <script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js"></script> <script src="https://ajax.aspnetcdn.com/ajax/mvc/5.1/jquery.validate.unobtrusive.min.js"></script>
相关文章推荐
- jquery中attr和prop的区别 (转)
- jQuery.on() 函数详解 【转载】
- 十分钟玩转 jQuery、实例大全
- JQuery 初探
- JQuery 初探
- 通过JQuery对页面表单操作
- 基于JQuery的Ajax
- jQuery事件绑定on()、bind()与delegate() 方法详解
- jQuery的deferred对象详解
- JQuery之cookie增删改查操作
- jquery获取html包括当前本身
- jQuery动态分页bootpag插件
- jquery判断对象是否为空并遍历对象的简单实例
- 十分钟玩转 jQuery、实例大全
- css —— 选择器优先级及jQuery遍历元素常用方法
- jQuery判断数组中是否包含某个元素$.inArray("js", arr);
- JQuery cxSelect联动下拉菜单
- jQuery学习笔记一:简介
- 十分钟玩转 jQuery、实例大全
- jQuery.ajax() 函数详解