如何使用不同的html输入自动填充html输入

如何使用不同的html输入自动填充html输入

问题描述:

<html>
<input name='name'>
<input name='handphone'>
</html>

I need some script to make if user type on name and their 'handphone' data that store on db will show on second input form

example if done

<form>
<input name='name' value='surya'>
<input name='handphone' value='081392111098'>
</form>

I think you need that if Any User type name input and if name is in database then headphone input autofill from database. For this You have to Use ajax or jQuery.

thanks