I want to have 6 input fields in a webpage. If the user presses a button the 6 fields expand to 7,8, 9, or 10 fields. The fields are editable and come with a preset value. With the input from the user (or the preset values) a final value is calculated via a formula.
- Is it better to use a
form
for the fields orDIV
s? - Should I use
JavaScript
or something else I am not thinking about yet? - Should I use
AJAX
when getting the values or is it not needed in this case? - I thought about using an excel like editor made with
jQuery
https://github.com/mleibman/SlickGrid/wiki/Examples but it seems overkill for my needs plus I would need to edit a lot of it since I want a simple display of the fields.