JSFiddle - React, Tailwind, and code Playground

by Manoj kumar Lakshman

HTML

<input type="button" id="btn" name="btn1" value="go" />

CSS

input{
    margin-top:500px;
}

JavaScript

$('#btn').on('click',function(){

   $(window).scrollTop(0);
});