- Dom
- click
- inArray
- merge objects
- query string
- smartcheck
- attr
- addClass
- hasClass
- removeClass
- append
- prepend
- remove
- has
- findAll
- empty
- position
- offset
- outerWidth
- outerHeight
- replaceWith
- html
- text
- val
- parseHTML
- parseJSON
- parent
- next
- prev
- first
- last
- now
- toArray
- size
- Manipulation
- dates compare
- getMonthName
- getDayName
- .NET JSON date
- hashtag
- number Format
- pad
- smallCase
- upperCase
- Forms
- focus
- mobile number
- repetition
- placeholder
- Browser
- browser feature
- Browser Information
- Effects
- hide
- show
- sticky
- scrolline
- goUp
- Animation
- circles
- Google analytics
- Google fonts
.findAll()
Description: Find and return an array of all child elements found within parent.
Example:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>findAll demo</title>
<script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
</head>
<body>
<ul>
<li>Cat</li>
<li>Dog</li>
<li>Wolf</li>
<li>Lion</li>
</ul>
<div class="results"></div>
<script>
bitsyCode.ready(function(){
var animals = bitsyCode("ul").findAll("li");
for (var i = 0; i < animals.length; i++) {
bitsyCode(".result").append(bitsyCode([animals[i]]).text() + "<br />");
}
})
</script>
</body>
</html>
Preview:
Cat
Dog
Wolf
Lion
Dog
Wolf
Lion
Share