-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjQuery.form.min.js
More file actions
2 lines (2 loc) · 849 Bytes
/
jQuery.form.min.js
File metadata and controls
2 lines (2 loc) · 849 Bytes
1
2
function jQueryForm(){function d(a){if(a instanceof jQuery||typeof a!=e){if(a instanceof jQuery)return a;throw new Exception("Invalid input for jQueryForm parent");}return $(a)}var e="string";this.returnJquery=!1;this.appendElement=function(a,b){var c=d(a).prepend(this.createElement(b));return this.returnJquery?c:this};this.prependElement=function(a,b){var c=d(a).prepend(this.createElement(b));return this.returnJquery?c:this};this.insertElement=function(a,b){var c=d(a).html(this.createElement(b));
return this.returnJquery?c:this};this.createElement=function(a){a=$.extend(!0,{},a);var b=a.element;delete a.element;b=$(document.createElement(b));if("undefined"!=typeof a.value){var c=a.value;delete a.value;b.val(c);b.text(c);b.html(c)}"undefined"!=typeof a&&b.attr(a);return b};this.getJquery=function(a){this.returnJquery=a;return this}};