Hi,
Please i am confuse to know the work of this sign (!)...which is exclamation sign in programming.
i have this code here which which i remove the exclamation sign (!)..it dont work but when i add it ,then it work.
Here is the code
<script type="text/javascript">
function getvalue()
{
var mytextfield=document.getElementById("mytext");
if(mytextfield.value!="")
{
alert("You Entered:"+mytextfield.value)
}
else{
alert("would you enter some text")
}
}
</script>
<input type="text" id="mytext" size="30">
<input type="button" value="check" onclick="getvalue()">
Please help me to understand the use of this sign !.
Thank you.
Clement Osei.