//*************************************// //Define methods to create input tags (mainly Text) //id, name, value, type respectively represent creation Tag's id, // name (name), value (value), type (type) // Bind the Input method event, the binding method is as follows (multiple event methods can be bound at the same time): // "onchange==alert('This Value is change success !');|onblur==alert('This value is the beautiful one !');" //*************************************/ /
if (event != null && event != "") { var event_array = event.toString().split('| '); for (var i = 0; i < event_array.length; i ) { var events = event_array[i].split('=='); var input_event = document. createAttribute(events[0]); input_event.nodeValue = events[1]; var_input.setAttributeNode(input_event); } }
//******************************************************************************* ****************// //Define method to create a label for the Select selection box; //***** id represents the identification id of the label //***** name represents the name of the label //***** options represents the options to be bound to the label (for example: "0231A563-Professional Services|02312177-Maintenance Services |...") //***** splitstr represents the character used to separate options (such as: '|') //***** splitchar represents the separator that separates key-value pairs ( Such as: '-') //***** event represents the event corresponding to this tag (when event==null, this tag does not bind events) //*** id represents the identification id of the label //***** name represents the name of the label name
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn