There are several ways to archive this.
Hidden fields
You can create hidden input fields and fill them with javascript when sending
Ajax
Use, for example, the jQuery AJAX library to serialize data and send it through AJAX
Style input fields, so they look like the div you are talking about
Another option is to simply use the input fields during use and style them so that they no longer look like inputs.
Let me know if you need an example of any of these.
source share