Re: Must "Accept terms" before submitting the order
Probally a real easy one for someone, i have a java script error when installing the mod "must_accept_terms.zip". I am following the 4.1 instruction and the error code states the error lies at the following:
Line 18
Char 12
Expected '/"
Code 0
How i have entered it is from below and line 18 is {/literal}, any ideas ?
{capture name=dialog}
<script type="text/javascript">
{literal}
//"Accept terms" form submission- By Dynamic Drive
var checkobj
function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="button")
tempobj.disabled=!checkobj.checked
}}}
{/literal}
</script>
|