码迷,mamicode.com
首页 > Web开发 > 详细

jquery input 选择器

时间:2014-07-21 23:28:09      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   re   c   代码   

1.9.1 官方文档:

创建一个 <input> 元素必须同时设定 type 属性。因为微软规定 <input> 元素的 type 只能写一次。

jQuery 代码:
// 在 IE 中无效:
$("<input>").attr("type", "checkbox");
// 在 IE 中有效:
$("<input type=‘checkbox‘>");

 

 

jquery input 选择器,布布扣,bubuko.com

jquery input 选择器

标签:style   blog   color   re   c   代码   

原文地址:http://www.cnblogs.com/Mr-Clint/p/3859305.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!