
i have a web page with account#, qtr, year if i want to remove the year column which is a drop down list from my jsp what should i do and what is the process please give a brief view as soon as possible. thank you.

<html>
<script type="text/javascript">
function removeColumn(c){
var root = c.parentNode.parentNode;
var allRows = root.getElementsByTagName('tr');
var aCells = c.parentNode.getElementsByTagName('td')
for(var j=0;j<aCells.length;j++){
if(c==aCells[j]){var q=j;break}
}
for(var i=0;i<allRows.length;i++){
allRows[i].removeChild(allRows[i].getElementsByTagName('td')[q]);
}
}
</script>
<body>
<table width="100%" border="1" cellspacing="2" cellpadding="2">
<tbody>
<tr>
<td> <a href="#" >Account</a></td>
<td><a href="#">QTR</a></td>
<td><a href="#" onclick="removeColumn(this.parentNode)">Year</a></td>
</tr>
<tr>
<td>1111</td>
<td>2121</td>
<td><Select>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
</select>
</td>
</tr>
<tr>
<td>2222</td>
<td>2111</td>
<td><Select>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
</select>
</td>
</tr>
</tbody>
</table>
</body>
</html>
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.