Given the following:
<SCRIPT LANGUAGE="JavaScript">
function GetTIPID(){
var newID;
newID = prompt("Enter ID", "ID here");
alert(newID);
document.myform.hiddentip_id.value == newID;
alert(document.myform.hiddentip_id.value);
}
</script>
the last line reveals that the line before it did not work. Is there something wrong with this syntax or method?
Thanks.
<SCRIPT LANGUAGE="JavaScript">
function GetTIPID(){
var newID;
newID = prompt("Enter ID", "ID here");
alert(newID);
document.myform.hiddentip_id.value == newID;
alert(document.myform.hiddentip_id.value);
}
</script>
the last line reveals that the line before it did not work. Is there something wrong with this syntax or method?
Thanks.