如何使用jquery标签看到codeigniter表单中的标签值?

I am using jQuery tagIt with Codeigniter.

But when I send the form to get the validation error I cant see the tags, despite I used to the input set_value()

Any idea?

You have to first assign a class name or Id name for the field. Then use that class name to enable TagIt on that field. here is an example.

<?php echo form_input('category', set_value('category',isset($categories) ? $categories : ''),'class="taxonomy"'); ?>

then use the class name in the tagit script

<script type="text/javascript">
$(document).ready(function() {
    $(".taxonomy").tagit();
    allowSpaces: true
});
</script>