Comments (4)
Not sure if this works
if ($('#mycb:checked').length) {
}
from chibi.
@Van-Nguyen @curioustechizen In 3.0 I've changed the behaviour of Chibi to return first found, rather than array of all form element values (similar to JQuery) with each
method available for when you need to loop through all.
$('#mycb')[0].checked should work but I'm thinking to add a checked(boolean)
method. With no arguments, will return boolean for first found, with boolean argument used to check/uncheck all matching.
How does this sound?
from chibi.
The checked(boolean)
method sounds great to me
from chibi.
@curioustechizen I've added this method to 3.0.7
from chibi.
Related Issues (20)
- How to resolve the conflict with jQuery? HOT 3
- How do you select children with chibli? HOT 3
- Chibi as implied global HOT 1
- Framework vs Library HOT 1
- Event Delegation support HOT 1
- Is .data() supported similarly to jQuery? HOT 3
- Typescript definition files? HOT 1
- Please publish to npm HOT 3
- Nodes variable is shared across all invocations of $() HOT 2
- Multiple forms using ajax on one page failing to get input data HOT 7
- htmlAppend appends in reverse order?
- How can I change `content-type` in `POST` requests?
- General Questions
- Why you did not use Prototype Closure in building this library, which saves memory? HOT 1
- AjaxStart and AjaxComplete Callback
- $().find use a function as filter HOT 3
- Cross Domain Ajax? HOT 7
- $(document).width() in chibi? HOT 1
- this isn't this on IE8.. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chibi.