JSFiddle - React, Tailwind, and code Playground

by superbDeveloper

HTML

<div id="savebtn" btnType="s">testing 123</div>

JavaScript

function savebtn($btnType){
    
    alert($btnType.attr("btnType"));
}



$("#savebtn").click(function(){

  savebtn($(this));           
    
});