ÿØÿà JFIF ` ` ÿþ
Server : Apache/2 System : Linux vps.phamthanh.local 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 User : benhviencoc7 ( 1008) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/benhviencoc7/public_html/data/javascripts/ |
Upload File : |
$(document).ready(function(){ //global vars var form = $("#customForm"); var comment = $("#comment"); comment.blur(validateCommment); comment.keyup(validateCommment); form.submit(function(){ if(validateCommment()) return true else return false; }); function validateCommment(){ var filter = /[<>]/; if( filter.test(comment.val()) | comment.val().length < 9){ comment.addClass("error"); return false; } //are valid else{ comment.removeClass("error"); return true; } } });