Menu
Hi!
This is a part of a larger function but I need this to work first.
When I click the checkbox I would like an alert telling me that I have…
This is what I put in the <header>
[CODE]<script type=”text/javascript”>
function test()
{
var bet = document.getElementById(‘check1’).checked;
if (document.getElementById(‘check1’).checked == ‘CHECKED’)
{
var true=”Yes”;
alert(true);
}
}
</script>
And here is what I put in the <body>
[code=html]<input type=”checkbox” id=”check1″ onclick=”test(document.getElementById(‘check1’).checked)”/>