jquery获取object的方式

除了按id,css获取外,还有

$('body>input').val(12);
$('input').val(123);
$("input[type='Input']").val(1234);

        });

 

    </script>
</head>
<body>
    <input type='input' class='selected'>1111111111111</input>
    <table style="width: 300px;">

posted @ 2015-05-26 18:16  log8  阅读(2543)  评论(0编辑  收藏  举报