简体   繁体   中英

Jquery Autocomplete remote datasource to multiple textbox

Is it possible to use jQuery Autocomplete Remote Datasource and display the results into multiple textbox instead of one as given in the jQuery page? If yes, how?

EDIT

As stated in the linked page on the view source (line 27)

"Selected: " + ui.item.value + " aka " + ui.item.id :

can i display ui.item.value into one textbox and ui.item.id into another textbox ?

Inside the autocomplete select: you can display your results how ever you would like, ie.

select: function( event, ui ) {
        $('#textbox1').val(ui.item.value); 
        $('#textbox2').val(ui.item.id);
},

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM