表单元素研究

$(".allcheck").click(function(){
                
                    if (this.checked) {
                    
                        $("input[type=checkbox]").attr("checked", true);
                        
                    }
                    
                    else {
                    
                        $("input[type=checkbox]").attr("checked", false);
                        
                    }
                    
                });

input元素都有checked的属性

表格
<script type='text/javascript'>
            $(function(){
            var tb=document.getElementById("GridView1");
			alert(tb.rows.length);
			alert(tb.rows[1].cells[1].innerHTML);
			alert(tb.rows[1].cells[1].width);
			
            })
        </script>

<input type="file" />
这个代码竟然能自动的变成一个浏览窗口[img][/img]

你可能感兴趣的:(表单)