[英]Check, with jQuery, if an element is the first thing in another element
有没有一种方法可以检查child div
是否是parent div
的第一项?
例如:
<div id="parent">
Some text <--------- not the first thing in the div
<div id="child"></div>
</div>
要么
<div id="parent">
<div id="child"></div> <--------- is the first thing in the div
Some text
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.