I want to make that input numbers are 6 digits or 9 digits numbers. No less than 6 digits, not between 6 and 9 digits and no more than 9 digits numbers. May I know how can I make that? Codes will be insert below
<label class="control-label col-sm-5" for="badgeid" style="margin-left: -50px;">ID:</label>;
<div class="col-sm-4">;
<p class="form-control-static" style="margin-top: -6px;">
<input type="number" class="form-control" id="secuid" name="secuid" min="0" placeholder="Enter ID" value=" $return_id">
<label class="control-label col-sm-6" style="color: red; font-size: 12px; margin-right: 20px;display: contents;">** 6 Digit ST Employee ID / 9 SecurityID **</label>
</p>
</div>
<div class="col-sm-10"></div>
Below is Javascript.
var secuid = document.translot.secuid.value;
if (secuid == null || secuid == ""){
alert("Please Insert the ID.")
return false;
}