I am making one div and onclick of div I am making some table. I am getting the table value. I want my table to be scrollable.
Here is my code.
var myTable = '<input type="text" id="myInput" onkeyup="myFunction()" title="Type in a name">'+
'<table id="myTable">'+ '<tr class="header"></tr>' + '<tr><td></td></tr>'+ '</table>';
I am getting this table data from some proxy. I want size of table should be limited and if data is more this shoud be scrollable.
CSS which I am applying here is
#myInput {
background-image: url('Drop.png');
background-position: 10px 10px;
background-repeat: no-repeat;
width: 30%;
font-size: 16px;
padding: 12px 20px 12px 40px;
border: 1px solid #ddd;
margin-bottom: 12px;
}
Any way to proceed this.