Howdy Yall~
I was wondering I have a CSS script below that I worked with and got it to do what I wanted it to do. The question is how did I take the existing submit button on a form with validation and change it into a button that once the validate is complete, it shows a submit and print button and when printed the two buttons do not show up.
//Paste this code in the HEAD part of your page
<Script language='Javascript'>
<!--
function change(obj,nid)
{
obj.id=nid;
}
-->
</Script>
<Style type='text/css'>
<!--
#normBtn{
background-color:Grey;
color:Black;
}
#btnFocus{
background-color:White;
color:Black;
}
.clickable{
cursor:hand;
}
-->
</Style>
//Paste the HTML code in the BODY part of your page
<input type='button' class='clickable' name='Validate' value='Validate' onMouseOver='change(this,"btnFocus")' onMouseOut='change(this,"normBtn")' id='normBtn' onClick='alert("Handle Click Event");'/>
Thanks
The DevilActually, the code you posted above is JavaScript. Post your question in the JavaScript forum and people would be happy to help you there
I was wondering I have a CSS script below that I worked with and got it to do what I wanted it to do. The question is how did I take the existing submit button on a form with validation and change it into a button that once the validate is complete, it shows a submit and print button and when printed the two buttons do not show up.
//Paste this code in the HEAD part of your page
<Script language='Javascript'>
<!--
function change(obj,nid)
{
obj.id=nid;
}
-->
</Script>
<Style type='text/css'>
<!--
#normBtn{
background-color:Grey;
color:Black;
}
#btnFocus{
background-color:White;
color:Black;
}
.clickable{
cursor:hand;
}
-->
</Style>
//Paste the HTML code in the BODY part of your page
<input type='button' class='clickable' name='Validate' value='Validate' onMouseOver='change(this,"btnFocus")' onMouseOut='change(this,"normBtn")' id='normBtn' onClick='alert("Handle Click Event");'/>
Thanks
The DevilActually, the code you posted above is JavaScript. Post your question in the JavaScript forum and people would be happy to help you there