As you see I have class whose name is table; and I have many functions on it "mainface" is one of them; these function is like my interface there are some check box and combobox on it; I want to write some JavaScript on "All" checkbox -> onclick=" ".
I want that when the user click on the "All" checkbox and option will disappear on the screen but I cannot find a way to do it.
Is there any way to do it ? Can I add call the JavaScript function to onclick?
<script type="text/javascript" >
function hide(){
if(document.form.All.checked){
document.getElementById('option').style.visibility="hidden";
}
}
</script>
</head>
<body>
<?php
class table{
public function __construct() {
echo table:: mainface();
}
public function mainface()
{
$arayuz=" ";
$arayuz.="<form name=form action=index.php method=post>";
$arayuz.="<fieldset>";
$arayuz.="<input type=checkbox name=All value=All onclick='SOME JAVA SCRIPT FUNCTION'>;
}
?>