I have this code:
$(document).ready(function() {
$form.find()
});
#second {
font-size: 20px;
color: green;
background: white;
text-align: center;
}
<form>
<div class="first" style="width: 301px; margin:5px 0 0 10px;">
<div id="second" style="font-size:18px; position: absolute; top: 8px; left: 5px; width: 300px; height: 42px;">Hello</div>
</div>
</form>
元素,以便将其更改为红色。是否有使用find()实现该目标的解决方案。
对我来说最重要的是使用它的id选择那个
对我来说最重要的是使用它的id选择那个
元素。
jsFiddle