form_complete_helper
v1.0.1
Published
This is a javascript developed to auto complete the form
Readme
Form-Auto-Complete-Helper
This simple plugin is used to fill all the matched fields of the form, you could invoke the function autoRender(data) to use it[And there is noly one function there]
How to use
const user={name:'rongxin',age:23,hobby:2}
/*Now all the fields with the same name as the user will be filled with
the user's property value correspondingly*/
autoRender(user)<input name='name' type='text'/> <!--rongxin-->
<input name='age' type='text'/> <!--23-->
<select name='hobby'> <!--music-->
<option value="1">music</option>
<option value="2">climbing</option>
<option value="3">cooking</option>
</select>