You will want to use Ajax techniques to communicate with server-side code to retrieve the appropriate info.

There is a book called [Bulletproof Ajax that has very good instructions on how to achieve this, along with the [url="http://bulletproofajax.com/code/"]code from the book](http://bulletproofajax.com/) which lets you see things in action.

Thank you for your post but I just want to make it clear that I will pull the data using JSP and MYSQL after onchange dateofbirth and I will have the matched records I just want to fill the rest of the fields if user selects a record using JavaScript.

You will want to use Ajax techniques to communicate with server-side code to retrieve the appropriate info.

There is a book called [Bulletproof Ajax that has very good instructions on how to achieve this, along with the [url="http://bulletproofajax.com/code/"]code from the book](http://bulletproofajax.com/) which lets you see things in action.

Thank you for your post but I just want to make it clear that I will pull the data using JSP and MYSQL after onchange dateofbirth and I will have the matched records I just want to fill the rest of the fields if user selects a record using JavaScript.

If the client-side script already has the data, then we can help you to do that.