tmc_angel

phone length

Jun 5th, 2012
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. jq_144(function(){
  3.   jq_144("a[href=#fire_form]").unbind('click').click(function(){
  4.     if (jq_144("form input[type=tel]").val().length > PHONE_LENGTH) {
  5.       alert("В телефоне слишком много символов");
  6.     } else {
  7.        jq_144('.block-form form').submit();
  8.     }
  9.   });
  10. });
  11. </script>
RAW Paste Data