I am doing a project in codeigniter and I came across a problem of displaying multiple ckeditor for objective answer to a question in my view.
<div class="col-md-6">
<textarea id="objective_answer" name="objective_answer"><?php echo set_value('objective_answer', $answer); ?></textarea>
<?php echo form_ckeditor(array('id'=>'objective_answer')); ?>
</div>
<?php } ?>
The above code displays one ck editor fine.But I have to show lets say 4 ckeditor for writing 4 objective answers to a question. Can anyone help me how to do this?
id
html attribute should be unique on the page.