how to pass custom regex in jquery validation
$("#Textbox").rules("add", { regex: "^[a-zA-Z'.\\s]{1,40}$" })$.validator.addMethod(
"regex",
function(value, element, regexp) {
var re = new RegExp(regexp);
return this.optional(element) || re.test(value);
},
"Please check your input."
);
Also in JavaScript:
- react Refused to execute inline script because it violates the following Content Security Policy directive
- devexpress winforms get readonly colour for current themes
- length of an object in javascript
- javascript logo
- JQuery UI Saving Sortable List
- luxurious
- javascript append to json
- remove a special character from string javascript
- jQuery exclude exteranl link for images
- on hover display block jquery
- space youtube
- hi
- javascript json decode
- show hand icon on hover javascript
- dm message collector discordjs
- how to create duplicate key array in javascript
- oncheck event jquery
- react bootstrap make col disapear in small screens
- how to run a vue js hello world app in vue version 3
- "ERR_SSL_WEAK_EPHEMERAL_DH_KEY"
- loading page for all ajax call in jquery 3.3.1
- js remove background image
- react native elevation
- javascript regex only letters and spaces