We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e1f09 commit 726b536Copy full SHA for 726b536
source/quo.query.coffee
@@ -44,6 +44,20 @@ do ($$ = Quo) ->
44
elements = @map -> Array::slice.call @children
45
_filtered elements, selector
46
47
+
48
+ ###
49
+ Get the siblings of each element in the current instance
50
+ @method siblings
51
+ @param {string} A string containing a selector expression to match elements against.
52
53
+ $$.fn.siblings = (selector) ->
54
+ elements = @map((index, element) ->
55
+ Array::slice.call(element.parentNode.children).filter (child) ->
56
+ child isnt element
57
+ )
58
+ _filtered elements, selector
59
60
61
###
62
Retrieve the DOM elements matched by the QuoJS object.
63
@method get
0 commit comments