lfortin / drive-jquery-plugin Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin to construct the DOM using basic jQuery selectors.
A jQuery plugin to construct the DOM using basic jQuery selectors.
Drive jQuery plugin - a selector-based DOM builder (for jQuery 1.3.x and later versions) The Drive jQuery plugin allows you to construct the DOM using basic jQuery selectors. It searches for elements, and if none is found, it attempts to create them. In any cases where elements have been found or created, they are returned. The plugin officially supports jQuery 1.3.x and later versions. Only 2KB minified and gzipped. Downloads: http://github.com/lfortin/drive-jquery-plugin/downloads Documentation: http://wiki.github.com/lfortin/drive-jquery-plugin License: http://www.opensource.org/licenses/mit-license.php
When we create a new input, we can't use .attr() to set type.
We should make a new config option, like 'inputType' to be used like that:
$('form#form_id input').drive({inputType: 'text'})
When a raw DOM element is passed as context, the element creation sometimes fails.
Should be corrected for next beta release.
For now we append new elements using .append().
Add a new option to use .prepend() instead.
$(...).drive({method: 'append'})
$(...).drive({method: 'prepend'})
Default method would be 'append'.
context problem with function version of plugin: $.drive()
Create a "safe" option to avoid creating elements in unknown or unexpected context.
Or something like
$(...).drive({ force: true })to ignore unknown context.
For callbacks, use default @function( ){ return false; }@ to limit event propagation?
Make failure callback ( 'drive:failure' event) work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.