vendredi 8 mai 2015

autocomplete in bootstrap modal

I want to show the last input data filled by user in bootstrap modal, i tried using HTML autocomplete="on" attribute but failed, like done in this fiddle. once user click on submit, on the second time it shows the hints according to previous filled input values.

http://ift.tt/1EnL13D


http://ift.tt/1RknMkY

Now I'm using jquery autocomplete method but in that we have to pass an array as source. See following example

http://ift.tt/1yOgWhm

Suppose i save the text input using ng-model or something and save data in $rootScope or scope and then i refresh the browser, then scope will get vanish.

Plz help me to resolve this.

Aucun commentaire:

Enregistrer un commentaire