Can you find autocomp id in your generated HTML source?

Regards, 
Sasa Stamenkovic.


adbluegene wrote:
> 
> Hi,
> 
> I am try to use Jquery in Zend. Datepicker widget works fine. But when I
> tried using Autocomplete it doesn't work. I am getting error
> 
> $("#acomp").autocomplete is not a function
> 
> Inside my Jquery form I am doing
> 
> public function init()
> {
> 
>     $this->setAttribs(array(
>             'id' => 'Search'
>         ));
> 
> 
>    $this->setAction('index');
> 
>    $elem = new ZendX_JQuery_Form_Element_DatePicker(
>                 "datePicker1", array("label" => "Date Picker:")
>     );
>    
>   $this->addElement($elem);
> 
> 
>   $elem = new ZendX_JQuery_Form_Element_AutoComplete(
>                 "acomp", array('label' => 'Autocomplete:')
>    );
> 
>   $elem->setJQueryParams(array('data' => array('New York',
>                                              'Berlin',
>                                              'Bern',
>                                              'Boston')));
> 
>     $this->addElement($elem);
> }
> 
> Any pointers will be great
> 
> Thanks in advance
> Abhi
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Jquery--Autocomplete-Issue-tp24231580p24231802.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to