It seems the minlength attribute for an field doesn\'t work.
Is there any other attribute in HTML5 with the help of which I
My solution for textarea using jQuery and combining HTML5 required validation to check the minimum length.
$(document).ready(function(){
$('form textarea[minlength]').on('keyup', function(){
e_len = $(this).val().trim().length
e_min_len = Number($(this).attr('minlength'))
message = e_min_len <= e_len ? '' : e_min_len + ' characters minimum'
this.setCustomValidity(message)
})
})