Difference between #2 and #3 of
Custom Autocomplete Display and Value Submission

Changes

Title unchanged

Custom Autocomplete Display and Value Submission

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

tutorial, autocomplete, jui

Content changed

[...]
'source' => $this->createUrl('test/autocomplete'),
// attribute_value is a custom property that returns the
// name of our related object -ie return $model->related_model->name
'value' => $model->isNewRecord ? '': $model->attribute_value,
'options' => array(
'min
CharsLength'=>3,
'autoFill'=>false,
'focus'=> 'js:function( event, ui ) {
$( "#test_autocomplete" ).val( ui.item.name );
return false;
}',
[...]
12 0
18 followers
Viewed: 61 608 times
Version: 1.1
Category: How-tos
Written by: Antonio Ramirez
Last updated by: SebK
Created on: Jul 14, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history