Good afternoon,
I have a tabular form with a field like this:
<?php for($i = 1; $i<=3; $i++): ?>
<div class="col-md-12">
<?php echo $form->textField($model,'pergunta[]',array('maxlength'=>105)); ?>
<?php echo $form->error($model, 'pergunta[]'); ?>
</div>
<?php endfor; ?>
How do I validate this field with ajax?
this code not working.
array('pergunta','CTypeValidator','type'=>'array','allowEmpty'=>false),