一.前端的代码 <p>Name: <input type='text', name = 'name'/></p> <p>Age: <input type = 'text' name ='age'/></p> <p>Sex: <label><input type = 'radio' name = 'sex' value = 'Man'/>Man</label> <label>&
目录 传统属性 name type accept alt checked disabled readonly maxlength size src value 新增属性 autocomplete autofocus novalidate height width list min max step multiple pattern placeholder required form formaction formenctype formmethod formnovalidate formtarg
$(function(){ //遍历获取的input元素对象数组,绑定click事件 var len = $("input[type='file']").length; ; i < len; i++){ $("input[type='file']").eq(i).click(function(){ $(this).next().val(""); $(this).next().hide(); $(this).css("width&q