« first day (1766 days earlier)      last day (2351 days later) » 

 
2 hours later…
12:41
This is what I tried to do:
```
HTMLElement.prototype.switchClasses = function(cOne, cTwo) {
// Toggle from one to two
if(this.classList) {
if(this.classList.contains(cOne)) {
this.classList.remove(cOne);
this.classList.add(cTwo);
}
} else {
console.error("no classlist wtf");
}
}
```
1 message moved from JavaScript
 
2 hours later…
 
2 hours later…
 
5 hours later…
22:26
$.validator.addMethod("postalcode", function(value, element) {
if (this.optional(element))
return true;
return /^[0-9]{4}[A-Za-z]{2}$/.test( value );
}, $.validator.messages.postalcode);
1 message moved from JavaScript

« first day (1766 days earlier)      last day (2351 days later) »