Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Jquery and Autocomplete

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,
basically I'm new in Jquery, so need advice from all expert here.
I just come to http://jqueryui.com/demos/autocomplete/#custom-data and try to change data.





I realize that label and description is mandatory so that i cant change with my own schema data.
Any tips or suggestion to make it working?

Thanks in advance
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

satriana visi wrote:I realize that label and description is mandatory so that i cant change with my own schema data.


Why not?
 
Rendi Artha
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

satriana visi wrote:I realize that label and description is mandatory so that i cant change with my own schema data.


Why not?



Previously in demo :


and I change to


of course i also make arrangement such this


fortunately if won't work as demo. Any missing Bear?

PS : somehow i make double post.please for delete new post.thanks
 
Bear Bibeault
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The widget expects a certain construct. You cant just go changing that structure. Why do you feel a need to change the property names? Youcan set the data to whatever you want.
 
Rendi Artha
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:The widget expects a certain construct. You cant just go changing that structure. Why do you feel a need to change the property names? Youcan set the data to whatever you want.



on purpose flexible handling JSON data from server. Every response from server is different format, thats way as starter I try change property names.o
I dont know about widget,if you mean the widget is



as stated in .data() , .append() I already make arrangement. Is it correct way Bear?
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic