Exception thrown on console. Why this exception is been thrown? After this exception is thrown, onchange dropdown does not work anymore. What can I do to prevent this from happening
Uncaught TypeError: Object function () {
if (this instanceof String) {
if (this.indexOf("%") != -1) {
return this;
}
}
return this + "px";
} has no method 'push'
Method in Javascript
Object.prototype.measurement = function() {
if (this instanceof String) {
if (this.indexOf("%") != -1) {
return this;
}
}
return this + "px";
};