Hello trying to make step by step body measurement form using jquery stepjs https://github.com/rstaib/jquery-steps/ my code submit the data on finish but need help on validation of the field that it should max 3 digit number that is the measurement before hitting the next button
<form id="form" name="form" method="post" action="mail/men-measure.php" class="measureinput-inner">
<section class="tabs-continners">
<input type="text" class="measureinput" placeholder="Enter Measurement In cm" id="bandhgala-length" name="bandhgala-length">
</section>
<section class="tabs-continners">
<input type="text" class="measureinput" placeholder="Enter Measurement in cm" id="bundi-length" name="bundi-length">
</section>
<section class="tabs-continners">
<input type="text" class="measureinput" placeholder="Enter Measurement In cm" id="fly" name="fly" >
</section>
</div>
</div>
My Script
<script src="js/jquery.steps.js"></script>
<script>
$(function ()
{
$("#wizard").steps({
headerTag: "h2",
bodyTag: "section",
transitionEffect: "slideLeft",
stepsOrientation: "vertical",
onFinished: function (event, currentIndex) {
$("#form")[0].submit();
}
});
});
</script>