<?php echo $this->Html->css(array('jquery.validate')); echo $this->Html->script(array('jquery.min.1.8.3','jquery.validate', 'jquery.validation.functions')); ?>
<script type="text/javascript"> $(function() { $("#twitter").validate({ expression: "if (VAL.match(/^(http(s)?:\/\/)?(www\.)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/)) return true; else return false;", message: "Should be a valid twitter link" }); }); </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)