title: Form using javascript make field required?
body: <p>I have a form that uses a javascript file <code>items.js</code> to add new items. So each time <code>form.php</code> is used and the 'add items' buttons is clicked then the new row of fields show to add details.</p>
  
  <p>So for example some of the code is the following to add field item name.</p>
  
  <pre><code>newCell = newRow.insertCell(3);
  newCell.innerHTML = '&lt;input class="item_text_area item_name" type="text" name="0_item_' + new_item + '" id="0_item_' + new_items + '" size="20" maxlength="250" /&gt;';
  </code></pre>
  
  <p>How can I edit this <code>.js</code> file to make the Item name field required?</p>
  
  <p>Any help would be appreciated.</p>