JQUERY-based form packing solid

// Form Filler, FormDataLoad: Function (Domid, Obj) {for (Var Property In obj) { IF (Obj.hasownProperty (Property) == True) {IF ($ (“#” + Domid + “[Name = ‘” + Property + “”). size ()> 0) {$ (“#” + Domid + “[Name = ‘” + Property + “]”). Each (Function () {var DOM = this; if ($ ($ ($) .attr (“type”) == “Radio”) {$ (DOM) .filter (“[value = ‘” + OBJ [Property] + “”). Attr (“Checked”, true);} IF ($ ($ (DOM) .attr (“Type”) == ” Checkbox “) {OBJ [Property] == True? $ (” Checked “,” Checked “: $ (DOM) .attr (” Checked “,” Checked “). Removeattr (” Checked “) } IF ($ ($ (“) ==” TEXT “|| $ (DOM) .prop (” tagname “) ==” SELECT “|| $ (DOM) .attr (” TYPE ” ) == “hidden” || $ (DOM) .attr (“type”) == “texTarea “) {$ (DOM) .val (obj [property]);} f ($ ($ (dom) .prop (” tagname “) ==” textarea “) {$ (DOM) .val (obj [property]) }}});}}}}
  The above-based form is filled with the full content of Xiaobian sharing to everyone, I hope I can give you a reference. I also hope that everyone will support Tumi Clouds.  
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment