This is a simple way to populate number of fields using jquery and database