Coder Social home page Coder Social logo

drive-jquery-plugin's Introduction

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

drive-jquery-plugin's People

Contributors

lfortin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drive-jquery-plugin's Issues

can't modify type attribute for input element

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'})

appending method option

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'.

safety option

Create a "safe" option to avoid creating elements in unknown or unexpected context.

Or something like

$(...).drive({ force: true })
to ignore unknown context.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.