This file contains 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
-- | |
-- Estrutura da tabela `pais` | |
-- | |
CREATE TABLE IF NOT EXISTS `pais` ( | |
`paisId` tinyint(3) unsigned NOT NULL AUTO_INCREMENT, | |
`paisNome` varchar(50) NOT NULL, | |
`paisName` varchar(50) NOT NULL, | |
PRIMARY KEY (`paisId`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=253 ; |
This file contains 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
//Celular | |
jQuery.validator.addMethod('celular', function (value, element) { | |
value = value.replace("(",""); | |
value = value.replace(")", ""); | |
value = value.replace("-", ""); | |
value = value.replace(" ", "").trim(); | |
if (value == '0000000000') { | |
return (this.optional(element) || false); | |
} else if (value == '00000000000') { | |
return (this.optional(element) || false); |