Add new input lines to HTML entry form

Enable users to add a row of fields to an HTML input form. In this code, after the HTML loads, addForm() is called. Clicking the Add Line button calls a function, addLine(), which calls addField() once for each field in the new input line. The elements, label and input, are formatted using CSS.

Generate array of objects

Loop through HTML form lines and store the data into an array of objects

Generate a table containing data from array of objects

Local Name Local DOB Local Age Local Zodiac

Questions for Prog6

  1. JQuery makes it much easier to traverse DOM elements. This process rquires more code in Javascript.
  2. JQuery makes it easier to select elements by use of $. This also cuts down on the amoount of required code to type.
  3. Javascript is handled much butter on mobile devices than JQuery. Animations and some other aspects run much slower on mobile devices when inplemented with JQuery.
  4. .get and .set in Jquery make it a simple process to manipulate the DOM.
  5. Along with better mobile support, JQuery also also better support for most desktop browsers than Javascript.