Home › Forums › JavaScript › Small jQuery plugin dilemma › Reply To: Small jQuery plugin dilemma
August 26, 2014 at 1:41 pm
#180751
Senff
Participant
I’m only offering a plugin, so if the original page has “bad practice” of styling something through IDs, then I have no control over that. So renaming the ID of either the original or the cloned element is not desired cause that way, we may lose some styles.
Unless ALL the styles (placed on the ID) are being read by the jQuery plugin and then applied to the common class.
But how can jQuery find ALL the styles of an element, when these styles are declared in one or more stylesheets…?