scroll Issue

by Kumaresan S

HTML

<input type="text" onchange="forScroll()">

<div id="list">
 <p>test</p>
 <p>test</p>
 <p>test</p>
 <p>test</p>
  <p>test</p>
</div>

<Script>
function forScroll(){
	document.getElementById("list").style.overflowY="hidden";
}
</Script>

CSS

#list{
  overflow:scroll;
  height:100px;
}