I have set a global CSS to text type inputs. Eg:
input[type=text] {
padding:10px;
width:100px;
//and many more
}
Now, I am using a plugin colorpicker
on a particular div. This plugin draws some input elements for color hex inputs, and sets its own CSS properties.
.colorpicker input {
width:25px;
}
But the already set CSS properties interfere with the newly set CSS. Is there a way that I can reset these inputs and not let them use any of the previous CSS properties? I don't know what all properties are being set from behind, like border, may be border-shadow, padding, etc. I want to reset all of them and create a fresh input type. I am willing to do that by Javascript/jQuery if needed. Please help me out. Thanks!
EDIT: Suppose if something like $('.colorpicker input').resetCSS();
exists, that removes all the CSS properties from the input, it would be great! Exactly what I need.