The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Small jQuery plugin dilemma Reply To: Small jQuery plugin dilemma


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…?