Title: combobox receives json in non expected format Post by: Juan Antonio Martínez on December 22, 2021, 02:54:53 AM Hello.
I have a server that respond to my ajax request with this format: Code: [ item1 , item2 , item3 ... ] So use this onLoadSuccess method: Code:
But seems too dirty. What's the right way to do this task? Thanks in advance. Juan Antonio Title: Re: combobox receives json in non expected format Post by: jarry on December 22, 2021, 07:30:15 PM Please define the 'loadFilter' function to convert the original data to the expected format.
Code: $('#cc').combobox({ Title: Re: combobox receives json in non expected format Post by: Juan Antonio Martínez on December 23, 2021, 02:49:29 AM Thanks a lot. Works fine.
I was unsure about how loadFilter() method works Juan Antonio |