1.0.1 • Published 1 year ago

form_complete_helper v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 itAnd 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>
1.0.1

1 year ago

1.0.0

1 year ago