javascriptdiv only have vertical scroll code example
Example 1: how to make a div scrollable
<div id="" style="overflow:scroll; height:400px;">
Example 2: css scrollbar vertical only
style="overflow:scroll; overflow-x: hidden;" // x is horizontal, y is vertical