JSFiddle - React, Tailwind, and code Playground

HTML

<input class="etape others" data-btntype="info">
<input class="etape others" data-btntype="inverse">
<input class="etape others" data-btntype="danger">

JavaScript

$(".etape").click(function(){
     var myBtnType = $(this).data('btntype');
     alert(myBtnType);
 });