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.

  1. Is it better to use form for fields or DIV s?
  2. Should I use the javascript or something else I'm still thinking about?
  3. Did I think of using Excel like
  4. 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.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -