I am trying to call a function:
hide($tempIdNum) {
$divString = $tempIdNum . “div”; //Buttons id’s=$tempIdNum related div boxes id’s=$tempIdNum . “div”
echo “<script type=’text/javascript’>
document.getElementByID(” . $divString . “).style.visibility = ‘hidden’; //Hide the related div box
</script>”
using:
echo “<input type=’button’ name=’hide’ id='” . $idNum . “‘ onClick=’hide(” . this.id . “)’ />”
There must be an error when the button tries to call the function because I’ve tried doing… echo “<p>This Function is Working</p>”; in the function just for debugging purposes and it doesn’t write it anywhere when I click the button. Anyone know what I’m doing wrong?
Any help is appreciated.