JSFiddle - React, Tailwind, and code Playground

by Liam Talbot

HTML

<div>
    <input type="button" id="go" value="Go To Button" />
</div>

<div id="panel">
    <input type="button" value="Now you can see me!" />
</div>

CSS

div#panel { border: 1px solid black; height: 400px; width: 400px; background-color: red; overflow: scroll; }
div#panel input { margin-top: 600px; margin-left: 600px; }

JavaScript

$('#go').click(function () {
    $('div#panel').scrollTop(400);
    $('div#panel').scrollLeft(400);
});