Aller au contenu

[jQuery] Astuces de manipulation du widget Autocomplete de jQuery UI

  • par

Modifier le rendu HTML avec les fonctions natives _renderMenu and _renderItem

Source: Quick example of multi-column results with jQueryUI’s new Autocomplete?

I ended up manually overriding the _renderMenu and _renderItem functions after all. Works like a charm so far, and was actually very easy to do. I was hoping for a « per-instance » solution, but we’ll burn that bridge when we come to it. Here’s what it came to, and thanks again!

Annuler les styles de .ui-menu pour .ui-autocomplete

Cette astuce fonctionne pour n’importe quel widget issu de jQuery UI.

jQuery Autocomplete with custom renderer throwing “Cannot read property ‘value’ of undefined”

Source : jQuery Autocomplete with custom renderer throwing “Cannot read property ‘value’ of undefined”