Download the PHP package skillberto/jqueryform without Composer
On this page you can find all versions of the php package skillberto/jqueryform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download skillberto/jqueryform
More information about skillberto/jqueryform
Files in skillberto/jqueryform
Package jqueryform
Short Description This JavaScript file create HTML DOM with jQuery.
License MIT
Informations about the package jqueryform
jQueryForm
Now, find some fancy methods:
appendElement, prependElement, insertElement, createElement.
The appendElement
inserts content, specified by the parameter, to the end of each element in the set of matched elements.
The prependElement
inserts content into the beginning, and insertElement
removes everything, and puts the new content into the parent element.
The last function createElement
is the core of the other ones. These methods create a new jQuery instance from the parameters.
All of this need: parent, properties
parameters.
First parameter: parent
.
Type: string (jQuery selector) or object of jQuery instance.
For example: div#box
.
Second parameter: properties
.
Type: object
Element property is rendered for HTML DOM tag, this is necessary.
Value is the property for content/value.
All of others rendered into method .attr like $(element).attr(properties)
.
In this example, the content (Jee, it's....) will be in the div, what use '#box' id:
Every function returns with the core object, so more implementation is easy:
If you want, you can change the return value with getJquery
method. If this true
, the methods return with jQuery instance, else with the jQueryForm instance.