JSFiddle - React, Tailwind, and code Playground

by chenxsan

HTML

<div id="jquery_next">

    <p>paragraph in p element</p>

    <div>
        division after the p element, it will be selected by the jquery next("div") method.   
    </div>

</div>

CSS

#jquery_next li{
    
color:white;
    
background:#333;
    
}

JavaScript

$("#jquery_next p").next("div").css("color","#0175cc");