helo…
I want to clone CJuiAutocomplete using jquery
the CJuiAutocomplete running good if i don’t click add-more…
here’s the code in _form.php:
<p class="clone">
<?php
$this->widget('zii.widgets.jui.CJuiAutoComplete',array(
'name'=>'product_number',
'model'=>$model2,
'attribute'=>'product_number[]',
'value'=>'',
'sourceUrl'=>$this->createUrl('productDelivery/autocomplete'),
'options'=>array(
'minLength'=>'2',
),
'htmlOptions'=>array(
'style'=>'height:16px;'
),
));
?>
</p>
<p><a href="#" class="add" rel=".clone">Add More</a></p>
i think my controller is doing good,because if i’m not clone the cjuiautocomplete,it works fine.
but when i click add more, the field is generated/cloned , but the autocomplete can’t run…
are CJuiAutocomplete can’t be cloned?
if you have same problem with me please share
sory for my bad english
thanks…