Whing Dela Cruz
asked on
Hide cell in a table
Hello experts, I have script here who's function is to add cells on a table and it is working very well. However, I want to hide cell2 during the execution of the script and I want also to set the width of cell3 and cell4, during the execution of the code. Help me please. Thank you!
<script>
function addTableFunction(a,b,c)
{
var table = document.getElementById("s Table");
var row = table.insertRow(0);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4 = row.insertCell(3);
var cell5 = row.insertCell(4);
cell1.innerHTML = '<button class="Delbutton" onclick="myIndex(this)">De l</button> ';
cell2.innerHTML = a;
cell3.innerHTML = b;
cell4.innerHTML = c;
cell5.innerHTML = '<input type="text" name="qty" size="2">';
}
<script>
function addTableFunction(a,b,c)
{
var table = document.getElementById("s
var row = table.insertRow(0);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4 = row.insertCell(3);
var cell5 = row.insertCell(4);
cell1.innerHTML = '<button class="Delbutton" onclick="myIndex(this)">De
cell2.innerHTML = a;
cell3.innerHTML = b;
cell4.innerHTML = c;
cell5.innerHTML = '<input type="text" name="qty" size="2">';
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER