newtomysql
Technical User
Dear All,
I got a very simple code to invisible and visible a paragraph. I am using javascript to do it but is just not working.
<script type="text/javascript">
function checkForm(this)
{
//alert("ok");
var myElement = document.getElementById("error_1");
myElement.style.visibility="visible";
}
</script>
so upon submit I call the above function
This is how I set my parapgraph within my form. When I call the function the alert ok works meaning that it calls the function right?
<p class="error" id="layer1" style="display: none" >
<small>Username Cannot Be Empty</small>
</p>
What is going wrong? Thanks.
I got a very simple code to invisible and visible a paragraph. I am using javascript to do it but is just not working.
<script type="text/javascript">
function checkForm(this)
{
//alert("ok");
var myElement = document.getElementById("error_1");
myElement.style.visibility="visible";
}
</script>
so upon submit I call the above function
This is how I set my parapgraph within my form. When I call the function the alert ok works meaning that it calls the function right?
<p class="error" id="layer1" style="display: none" >
<small>Username Cannot Be Empty</small>
</p>
What is going wrong? Thanks.