twitter bootstrap 3 - boostrapvalidator textarea validation always green -


i having textarea code:

<div class="col-md-10"> <textarea class="form-control" cols="20" id="op_question" name="op_question" rows="2" data-bv-field="op_question"></textarea> </div> 

and having code bootstrapvalidator:

            op_question: {                 validators: {                     notempty: {                         message: 'the question required , cannot empty'                     },                     stringlength: {                         max: 500,                         message: 'post content must less 120 characters'                     }                 }             } 

the problem that, bootstrap validator green, when textarea empty, why happens according ?

cheers


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -