Prepend prepends the elements specified by the selector to each element in the set of matched elements, following the same rules as Append.
(selector string)
| 181 | // Prepend prepends the elements specified by the selector to each element in |
| 182 | // the set of matched elements, following the same rules as Append. |
| 183 | func (s *Selection) Prepend(selector string) *Selection { |
| 184 | return s.PrependMatcher(compileMatcher(selector)) |
| 185 | } |
| 186 | |
| 187 | // PrependMatcher prepends the elements specified by the matcher to each |
| 188 | // element in the set of matched elements. |