JavaScript for Expand and Collapse(using table)

muralikrishnasurap-12704
Posted by muralikrishnasurap-12704 under JavaScript category on | Points: 40 | Views : 2132
Here you can find the code base for minimizing and maximization of some part of content placed in a table based in java script.

<script language="javascript" type="text/javascript">
function hideTable() {
var obj = document.getElementById('hiddenText');
if (obj.value == 'expand') {
obj.value = 'collapse';
document.getElementById('tbltable').style.visibility = "hidden";
}
else if (obj.value == 'collapse') {
obj.value = 'expand';
document.getElementById('tbltable').style.visibility = "visible";
}
return false;
}
</script>

Comments or Responses

Login to post response