Hi guys, i'm trying to put a javascript thing together to prevent people from entering more than 70 characters into the 'order comments' text box.
i placed this code (includes/modules/pages/checkout/jscript_main.php):
Code:function countAreaChars(areaName,counter,limit) { if (areaName.value.length>limit) areaName.value=areaName.value.substring(0,limit); else counter.value = limit - areaName.value.length; }however the javascript doesn't seem to be pulling in. Have i declared it in the wrong file?PHP Code:<?php echo zen_draw_textarea_field('comments', '20', '3', '', 'onKeyDown="countAreaChars(this.form.feedback,this.form.leftChars,70);" onKeyUp="countAreaChars(this.form.feedback,this.form.leftChars,70);"'); ?>
regards
Andy.



