how to get direct child of an element in jquery Posted on February 28, 2016 by Chandan Sharma in JavaScript, JQuery, PHPGet the direct children of an element UL. $(document).ready(function() { $("ul").children().css({"color": "red", "border": "2px solid blue"}); });Share this:TwitterFacebook Published by Chandan Sharma View all posts by Chandan Sharma