JavaScript / JQuery / PHPhow to get direct child of an element in jquery February 28, 2016 Chandan SharmaComment on how to get direct child of an element in jqueryGet the direct children of an element UL. $(document).ready(function() { $("ul").children().css({"color": "red", "border": "2px solid blue"}); });Share this:FacebookX