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 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 class="ibox-content">
            <table class="table table-hover">
                  <th width="9%">Actions</th>
                  <th width="5%">Order</th>
                  <th width="12%">Received on</th>
                  <th width="12%">Degree</th>
            <% Dim iCount
iCount = 0 %>
While ((Repeat1__numRows <> 0) AND (NOT rs_education.EOF)) 
      RecordCounter=RecordCounter + 1
      If RecordCounter Mod 2 = 1 Then 
	End If
                    <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>
                      <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)%>" />
                    <td><%= DoDateTime((rs_education.Fields.Item("Receivedon").Value), 2, 9225) %></td>
  iCount = iCount + 1
          </div><input type="hidden" name="Count" value="<%= iCount - 1 %>" />


Open in new window

Who is Participating?

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

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:
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>
    $(function() {
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

From novice to tech pro — start learning today.