Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <table id="tableInput">
  2. <thead>
  3. <tr>
  4. <th>Col 1</th>
  5. <th>Col 2</th>
  6. </tr>
  7. </thead>
  8.  
  9. <tbody id='abc'>
  10. <tr>
  11. <td><input id="itemid" name="itemid" type="text" size="20" /></td>
  12. <td>Col2 desc</td>
  13. </tr>
  14. <tr>
  15. <td><input id="itemid" name="itemid" type="text" size="20" /></td>
  16. <td>Col2 desc</td>
  17. </tr>
  18. </tbody>
  19. </table>
  20.  
  21. i=0;
  22. while i < document.getElementById("tableInput").tBodies.length {
  23. x = document.getElementById("tableInput").tBodies[i].input.value);
  24. if x = "" {
  25. errorMsg = 1;
  26. }
  27. i++;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement