Validate integer on repeated region

I have a form with a field that should only accept integers, this is inside a repeated region, so there are multiple entries.
I need to validate when the form is submitted (or before) that the data entered is an integer (its an order number)

Here is my repeated region code:

<form name="form1" action="history_SPeducationreorder.asp?NewUserId=<%=(rs_contact.Fields.Item("UserId").Value)%>" method="POST" class="form-horizontal" id="form1">
    
<!-- Repeated region -->
    
      <div class="col-lg-12">
        <div class="ibox float-e-margins">
          <div class="ibox-title">
            <h5>Education history&nbsp;&nbsp;|&nbsp;&nbsp;<small>most recent at the top</small></h5>
          </div>
          <div class="ibox-content"> <a href="history_educationadd.asp?NewUserId=<%=(rs_contact.Fields.Item("UserId").Value)%>" class="btn btn-primary">Add education</a>&nbsp;
            <button type="submit" class="btn btn-white" >Re-order</button>
</div>
          <div class="ibox-content">
            <table class="table table-hover">
              <thead>
                <tr>
                  <th width="9%">Actions</th>
                  <th width="5%">Order</th>
                  <th width="12%">Received on</th>
                  <th width="12%">Degree</th>
                  <th>School</th>
                  <th>Evaluated</th>
                  </tr>
              </thead>
              <tbody>
            <% Dim iCount
iCount = 0 %>
            <% 
While ((Repeat1__numRows <> 0) AND (NOT rs_education.EOF)) 
%>
          <% 
      RecordCounter=RecordCounter + 1
      If RecordCounter Mod 2 = 1 Then 
   
	End If
      %>
                  <tr>
                    <td><a href="history_educationedit.asp?NewUserId=<%=(rs_contact.Fields.Item("UserId").Value)%>&EducationId=<%=(rs_education.Fields.Item("Id").Value)%>" class="btn btn-white btn-sm"><i class="fa fa-folder" ></i></a>&nbsp;<a href="history_educationSPdelete.asp?NewUserId=<%=(rs_contact.Fields.Item("UserId").Value)%>&EducationId=<%=(rs_education.Fields.Item("Id").Value)%>" class="btn btn-white btn-sm1"> <i class="fa fa-trash-o" ></i></a></td>
                    <td><div>
                      <input type="text" class="form-control" name="<%= (iCount & ".Qty") %>"  id="<%= (iCount & ".Qty") %>" value="<%=(rs_education.Fields.Item("schoolorder").Value)%>" size="3" maxlength="5">
                      <input type="hidden" name="<%= (iCount & ".ID") %>" value="<%=(rs_education.Fields.Item("Id").Value)%>" />
                    </div></td>
                    <td><%= DoDateTime((rs_education.Fields.Item("Receivedon").Value), 2, 9225) %></td>
                    <td><%=(rs_education.Fields.Item("Degree").Value)%></td>
                    <td><%=(rs_education.Fields.Item("SchoolName").Value)%></td>
                    <td><%=(rs_education.Fields.Item("Evaluated").Value)%></td>
                  </tr>
            <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rs_education.MoveNext()
  iCount = iCount + 1
Wend
%>
              </tbody>
            </table>
          </div><input type="hidden" name="Count" value="<%= iCount - 1 %>" />
        </div>
      </div>
      
      

        </form>

Open in new window

LVL 1
AleksAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontyWeb Ninja at largeCommented:
i would (and do) use a simple jquery plug-in that only allows numeric values to be entered in:

http://transtatic.com/plugin/numericInput.htm
Big MontyWeb Ninja at largeCommented:
include the files, then add a class called "numericOnly" to your input field, and use the following code:

<script type="text/javascript" src="../numericInput.min.js"></script>
<script>
    $(function() {
        $(".numericOnly").numericInput();
    });
</script>
AleksAuthor Commented:
I actually already have a jquery validation but I haven't tried using it in repeated regions, they usually only validate the first item on the repeated region.
Big MontyWeb Ninja at largeCommented:
try the plugin I suggested, I think it'll work perfect for what you're trying to accomplish

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.