JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<input type="button" name="test_button">

JavaScript

$("input").click(function(){ 
   var type = $(this).attr('type'); 
   name = $(this).attr('name'); 
   alert("Type: "+type+" & Name: "+name); 
  });