jqTransform form表单美化插件使用方法
2018-10-12 14:03
561 查看
jQtransForm下载地址 https://www.jb51.net/jiaoben/25166.html
用法
1- 添加脚本包含在标题部分的网页
2- 写你的 form
3- 最后使用插件
After it, select the forms and call the jqTransform plugin. See some examples:
兼容性:ie 6+, safari 2+, firefox 2+
附:select如有js联动效果,则不能美化。需要原有的select,如以下方法:
用法
1- 添加脚本包含在标题部分的网页
//required
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.jqtransform.min.js"></script>
2- 写你的 form
<form class="jqtransform">
<div class="rowElem">
<label for="name">Name: </label>
<input type="text" name="name" />
</div>
<div class="rowElem">
<input type="submit" value="send" />
<div>
</form>
3- 最后使用插件
After it, select the forms and call the jqTransform plugin. See some examples:
<script type="text/javascript">
$(function() {
//find all form with class jqtransform and apply the plugin
$("form.jqtransform").jqTransform();
});
</script>
兼容性:ie 6+, safari 2+, firefox 2+
附:select如有js联动效果,则不能美化。需要原有的select,如以下方法:
<script language="javascript">
$(function(){
$('.rowElem').jqTransform({imgPath:'jqtransformplugin/img/'});
});
</script>
<form action="" class="jqtransformdone" method="POST">
<div class="rowElem">
<label>标题</label>
<input type="text" name="inputtext"/>
</div>
<div class="NOrowElem">
<label>地区</label>
<select name="select1">
<option selected="selected" value="0">省</option>
<option value="1523">北京</option>
<option value="1524">陕西省</option>
</select>
<select name="select2" >
<option selected="selected" value="">市</option>
<option value="1525">北京市</option>
<option value="1526">西安市</option>
</select>
</div>
</form>
您可能感兴趣的文章:
相关文章推荐
- jqTransform form表单美化插件使用方法
- BootStrapt iCheck表单美化插件使用方法详解(含参数、事件等) 全选 反选
- [转]iCheck表单美化插件使用方法详解(含参数、事件等)
- iCheck表单美化插件使用方法详解(含参数、事件等)
- iCheck表单美化插件使用方法详解(含参数、事件等)
- 第33款插件:第27款插件:jquery.jqtransform.js表单美化
- jquery表单插件form使用方法详解
- jQuery插件:jqTransform表单美化
- iCheck表单美化插件使用方法详解(含参数、事件等)
- iCheck表单美化插件使用方法详解(含参数、事件等)
- jQuery form插件的使用--使用 fieldValue 方法校验表单
- 快速学习jQuery插件 Form表单插件使用方法
- 测试使用jq的无alert检测提示form输入内容错误信息方法
- 使用jQuery.form插件,实现完美的表单异步提交
- jQuery Validate 表单验证插件使用方法
- jquery表单验证插件与使用方法
- Validation-jQuery表单验证插件使用方法
- 表单验证插件Validform的使用方法
- [j2ee][servlet]使用get方法提交form表单时出现乱码解决方法