Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Get other json data values
posted

So, in jQuery's autocomplete you are able to do something like this:

    $("input#loc").autocomplete({
        source: "mylocations.php",
        minLength: 3,
        select: function( event, ui) {
            $('#loc').val(ui.item.label);
            $('#bldg').val(ui.item.bldg);
            //autocomplete bldg
            loadRooms();
        }
    });

Is there any way to get additional data elements returned with the json?  If not, how does one even get the selectedValue?  Thanks!

Parents Reply Children
No Data