javascript - User input fields better with DIVs or forms for a webpage that just calculates a formula? -
I have to keep 6 input fields in the webpage if the user presses a button 6 fields 7,8, 9 or 10 fields Spreads up to. Fields are editable and come with a preset value. With the input from user (or predetermined value) a final value is calculated by a formula.
- Is it better to use
form for fields or
DIV s?
- Should I use the
javascript or something else I'm still thinking about?
- Did I think of using Excel like
- I created the code with jQuery but for my needs it was It seems more plus I will need a lot of editing because I need a simple show of fields.
I will use a form because you are asking users for your data Input. If you are also targeting those platforms, it will also trigger the keyboard on mobile / tablet devices.
Javascript is okay for this, as long as you do not want to hide the formula that you are using (because they will be able to see that they see your source).
Do you need to use AJAX? Are changes in pre-populated values too much? If not, then no, it's just adding additional work when you have an array of values.
- Should I use the
Comments
Post a Comment