I am a begginer at javascrit, and im trying to get a form result globaly
the radio button
<input type='radio' name='supporter' id='supporter' value='yes'>
and the javascript on the nother page
<script type="text/javascript">
function show(){
var supporter = document.getElementById('supporter');
if (supporter.value == "yes") {
alert("it works")
}
}
show();
</script>
and i keep getting an error, this: supporter is null
can please someone tell me what im missing?