jquery 一个简单的问题
<body>
<h3>jQuery构造函数</h3>
<input value="1" /> +
<input value="2" />
<input type="button" value="=" />
<label> </label>
<script type="text/javascript">
$("input[type='button']").click(function(){
var i = 0 ;
$("input[type='text']").each(function(){
i += parseInt($(this).val()) ;
}) ;
$("label").text(i);
}) ;
$('input:lt(2)')是什么意思?
.add('label')
.css('border','none')
.css('borderBottom','solid 1px navy')
.css({'width':'30px'});
</script>
</body>