Code:
<script>
function display_check(i)
{
if(i==0) {return true;}
else if(i!=0) {return false;}
}
function run()
{
if (t-1 >= 0)
{
t = t - 1;
document.getElementsByValue('text').innerHTML =display_check(t);
}
}
</script>
<body>
<input type="button" onclick="run()" />
<?
$text = "<p id=\"text\"></p>"
echo $text;
?>
</body>
who know other way can use in if else statement to display? Thank you.
notice: Please enclose your posted code in [code] tags (See How to Ask a Question). So use [code] tags in future. - MODERATOR
Comment