Jquery ui autocomplete search label, value or other field?
<pre><code>&lt;script&gt;
    $(function() {
                    var products = [{"label":"Biscuit","value":532,"product_code":532,"product_name":"Biscuit","mrp":"25.00","selling_price":"22.00","measuring_type":"Qty","group_name":"TAX"},{"label":"Bread","value":533,"product_code":533,"product_name":"Bread","mrp":"23.00","selling_price":"21.00","measuring_type":"Qty","group_name":"NON TAXABLE"}];

        $( "#product_code" ).autocomplete({
            autoFocus: true,
            source: products,
            minLength: 0,
            focus: function(event, ui){
                $('#product_name').val(ui.item.product_name);
                $('#mrp').val(ui.item.mrp);
                $('#selling_price').val(ui.item.selling_price);
                $('#measuring_type').val(ui.item.measuring_type);
                $('.measuring_type').text(ui.item.measuring_type);
                $('#group_name').val(ui.item.group_name);
            },
            select: function(event, ui) {
                $('#product_code').val(ui.item.product_code);
                $('#product_name').val(ui.item.product_name);
                $('#mrp').val(ui.item.mrp);
                $('#selling_price').val(ui.item.selling_price);
                $('#measuring_type').val(ui.item.measuring_type);
                $('.measuring_type').text(ui.item.measuring_type);
                $('#group_name').val(ui.item.group_name);
                $('#quantity').focus();
            }
        }).focus(function(){
            $(this).autocomplete("search", "");
        });

        $("#product_code").autocomplete().data("uiAutocomplete")._renderItem =  function( ul, item )
        {
            return $( "&lt;li&gt;" )
                    .append( "&lt;a&gt;" + item.label + " - " + item.selling_price + "&lt;/a&gt;" )
                    .appendTo( ul );
        };

    });
&lt;/script&gt;
</code></pre>

<p>The above code shows "all label" fields when i focus on to an autocomplete input, And i am typing something so it filters that label. Fine till now.</p>

<p>I want the typed text not only search and return label alone, i want it to search the matching text in value, or mrp or selling price ("mrp":"25.00","selling_price":"22.00"), i had those thing in the source. how can i achieve it?</p>