jquery validator Url
$.validator.addMethod("UrlVal", function (value, element) {
var Inicio_URL = ['http://www', 'https://www', 'www', 'ftp://www'];
var Fim_URL = ['com', 'net', 'org', 'pt', 'eu','co'];
var Url_Inserido = value.toLowerCase().split(".");
if (Inicio_URL.includes(Url_Inserido[0])) {
if (Fim_URL.includes(Url_Inserido[(Url_Inserido.length - 1)])) {
return true;
} else
return false;
} else
return false;
})
Also in JavaScript:
- adding to array js
- jquery get all select options
- data table in angular 8 from api
- installeer alle nodes in node red
- encrypt script code
- reactjs start project
- react mid senior dev interview questuions
- get css value jquery
- how to load localt ext file in js
- go to next route vuejs
- ready function javascript
- node js to check 32 bit
- get value onChange from mat-select angular
- format money javascript commas
- cordova delete cache
- "when.promise" async await
- how to get values from select multiple in js
- HOW TO SPLIT AN ARRAY JAVASCRIPT
- créer composant react
- transfer data from one component to another angular
- remove square brackets from string javascript
- js go back
- javascript convert to and from binary
- vuejs