JSFiddle - React, Tailwind, and code Playground

by Afzaal Ahmad Zeeshan

HTML

<li id="thisisid">Something</li>

JavaScript

$('body').append(
    '<br />Id is: ' + $('li').attr('id') // this is the code
    )