Forums

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

#180757
nixnerd
Participant

getElementById usually (in most browsers, AFAIK) only returns the first match.

I believe you are correct sir. Easy enough to test though.

#1 with #2 as a fallback sounds reasonable.

I’ve taken the approach that upon initialization, the element (that you want to be sticky) will be cloned.

On a sidenote… I created a complete shit-storm for myself earlier this week by cloning stuff. It sucked.