I want to create a prototype function for adding style to element. Similar to the following code:
element.css3("property" , "value");
please help me to write prototype function. this is my code : (has problems)
Object.prototype.css3 = function (property , value) {
this.style.property = value;
};