JSFiddle - React, Tailwind, and code Playground

by Bhesh Gurung

HTML

<div id="otherdiv" style="height: 1600px; background: black; color: white;">
    another div
</div>
<div id="location" style="height: 600px; background: red; color: black;">
    Location
</div>

JavaScript

$(document).ready(function(){ 
    $("#otherdiv").html("Doing something ... ");
    setTimeout(function() {
        location.hash = '#location';         
    }, 3000);
});