[英]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.