I've found it quite easy with jquery UI. Something like this ought to
work in your .ctp file. Where #UserName is your field's id, and
$usernames is the list of choices. If you want your autocomplete to do
server-side lookup, check the jquery UI docs.

<script type="text/javascript">
        $(document).ready(function() {
                $("#UserName").autocomplete({
                        source: <?php echo json_encode($usernames); ?>,
                });
        });
</script>

you're welcome :)

-e

On Oct 11, 9:30 am, hoss7 <[email protected]> wrote:
> tell me best way for create autoComplete with jquery in cakephp 1.3

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to