when this button is clicked
Code: Select all
<img src="images/del.png" width="15" height="15" onclick="hide(<?php echo $y;?>)">Code: Select all
function hide(y){
y=y-1
var line="line"+y
document.getElementById(line).style.display="none"
//the array is supposed to be in here to record the values of all the $y that ever called this function
}