JSFiddle - React, Tailwind, and code Playground

by romkey

HTML

<body>
    <h1>Hi there</h1>
    <div id='main'>
        there
        <legend>This is the picture</legend>
        <p>This is not the picture</p>
        <p>In sanctum sanctorum d'oh</p>
    </div>
    <div>John Resig</div>
    <div>George Martin</div>
    <div>Malcom John Sinclair</div>
    <div>J. Ohn</div>
</body>

JavaScript

$( 'h1' ).css( 'color', 'green' );
$( "div:contains( 'there' )" ).css( 'color', 'red' );
$( "p:contains( 'picture' )" ).css( 'color', 'blue' );

$( "div:contains('John')" ).css( "text-decoration", "underline" );