This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var telephoneWrapper = jQuery(".telephone"); | |
var invalidMsg = jQuery('<span class="tp-invalid" style="position:relative; color: red;">!+ TEXT page_contact telePhoneInvaliMsg htmlStrip +!</span>').appendTo("form.flexibleForm .section1"); | |
invalidMsg.hide(); | |
jQuery(".submit").click(function(){ | |
var telephone = jQuery("#ff_telephone1").val(); | |
var intRegex = /^\d+$/; | |
if(!intRegex.test(telephone)) { | |
telephoneWrapper.addClass("invalid"); |