by Jopyance » Thu Sep 02, 2010 8:39 am
Thx. But when I add script at the part of "Javascript added at start of built-in CheckIt function:" in page of Checkout Screen, some debug sentences are displayed on the top of webpage. like "if (button == "68") return (true); ...". the Email address still can be edited. Could you tell me what's the problem? Thanks a lot.
Here is my JS:
<script language="javascript">
function disableField()
{
if (document.getElementsByName("transaction[customer][email]")[0]){
document.getElementsByName("transaction[customer][email]")[0].readOnly = true;
}
}
</script>