Html5 ScrollView

Invoke the back method of the jqxScrollView. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="view">
    <div style="color: white; background: blue;">Item 1</div>
    <div style="color: white; background: red;">Item 2</div>
</div>
<div>
    <input style="margin-top: 20px;" type="button" id='jqxButton' value="Invoke the back method" />
</div>

JavaScript

$('#view').jqxScrollView({
    width: 300,
    height: 250,
    buttonsOffset: [0, 0],
    currentPage:1
});
$("#jqxButton").jqxButton({
    height: '30px',
    width: '170px',
    theme: 'energyblue'

});
$('#jqxButton').on('click', function () {
    $('#view').jqxScrollView('back');
});