I am doing the following within a jquery plugin and I’m looking a way to select the divs after they are created. I’d like to avoid giving them an id as then I would need to concern myself with making the id unique.
$('.something').wrap('<div />');
also:
$('.something').after('<div></div>');
Thanks for any help
Like this:
and
Each of these calls will return one element for each element in the original set.