okay so I have this code in body:
<input type="text" value="haha" id="full_name"/>
And this code in script
<script language="javascript" type="text/javascript">
function first(){
var nameContent=document.getElementById('full_name').value;
}
function second() {
first();
y=nameContent;
alert(y);
}
second();
</script>
I want a alert showing the value of the element full_name, but it doesn't seem to work, does anyone know why? :S