JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

HTML

<input type="text" id="name">
<button class="dedi">click</button>

JavaScript

var len = $("#name");

$(".dedi").click(function(){
	alert (len.length)
})