How To Get Children Element In jQuery

WebSolutionStuff | Jul-13-2022 | Categories : jQuery

In this article, we will see how to get the children of this selector in jquery. You can use the find() method to get the children of the $(this) selector using jquery. The find() method returns descendant elements of the selected element. This method traverse downwards along descendants of DOM elements.

So, let's see how to get children of this selector in jquery, how to find the child element in jquery, jquery get the child element by class.

Example: How to Get the Children of the $(this) Selector in jQuery

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>jQuery Select the Child Element Inside Div On Click - Websolutionstuff</title>
        padding: 80px;
        border: 6px solid #999;
        text-align: center;
    .box img{
        width: 400px;
        border: 3px solid #999;
<script src=""></script>
        $(this).find("img").css("border-color", "red");
    <div class="box">
        <img src="images/laravel.jpg" alt="Laravel">


You might also like:

Recommended Post

Featured Post

Follow us
facebooklogo github instagram twitter