Skip to content

Using js instead of php - syntax error #4

@bsde1245

Description

@bsde1245
<script type="text/javascript">
    for(row = 0; row < 8; row++) {
      document.write("<div style='clear:both'>");
      for(col = 0; col < 3; col++) {
        document.write('<input type="text" style="float:left;" name = "'row+":"+col'" id="'row+":"+col'">');
      }
      document.write("</div>");
    }
    </script>

I have a syntax error in line
document.write('<input type="text" style="float:left;" name = "'row+":"+col'" id="'row+":"+col'">');
Please correct it. thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions