Using Autocomplete pass textbox value as extraparam to php file

Using Autocomplete pass textbox value as extraparam to php file

Helloooooooo

can anybody help me i want to pass value of another textfield to php file with extraparam option but it's not working . I tried this from last 3-4 days. If anybody help me to sort this is useful for me.

Thanks


$().ready(function()
 {
       
       
    $("#txtpro_no").autocomplete("getplotno.php", {
        width: 260,
        matchContains: true,
        mustMatch: false,
       
       
        // This I want to pass value of textbox dynamically which is not working
        extraParams: {id: $("#txtproj_id").value},   
       
       
       
        //  This Works but no dynamic value
        //extraParams: {id:1},   
       
        selectFirst: true
       
    });
   
    $("#txtpro_no").result(function(event, data, formatted){
    $("#txtplot_size").val(data[1]);
    });
});