Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".setA", ancestorOfSetsA);
- $(".setA", ancestorOfSetsA).add(".setB", ancestorOfSetsB);
- $(".setA", ancestorOfSetsA).add( $(".setB", ancestorOfSetsB) );
- $( selector ).add('<div>new element</div>').appendTo( somethere );
- jQuery.fn.add = function( selector, context ) {
- return this.pushStack( jQuery.unique( jQuery.merge(
- this.get(),
- typeof selector == 'string' ?
- jQuery( selector, context ) :
- jQuery.makeArray( selector )
- )));
- }
Add Comment
Please, Sign In to add comment