<title>jQuery scrollLeft() Method Returns Horizontal Scroll Bar Position of the Selected Element</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
$(document).ready(function(){
$('.mygetbtn').click(function(){
var mypos = $("div").scrollLeft();
<h2>jQuery scrollLeft() Method Returns Horizontal Scroll Bar Position of the Selected Element</h2>
<button type="button" class="mygetbtn">Click to Return Position</button><br><br>
<div>Welcomeummmmmmmmmmmmmmmmmmmmmmmmmmmmmmm to Tutorial! Learn jQuery with live examples. Welcome to Tutorial! Learn jQuery with live examples.</div>
<p>Scroll above horizontal scroller and click button to find the position.</p>