I have an input field:
<input name="onkirmizi[]" type="text" class="form-control" tabindex="1" >
And I want to give this input field validation which only allows 2 characters allowed. So in this point, I have two questions.
- Do I need to put it inside of the form?
- Do I need to add js file (if so how can I do that)?