Grid input code, backstage, using controls
$ (document). Ready (function () {
var khid = 3026;
$ ("TD [Colname= ' PH ']"). Children ("input[type= ' text ']"). AutoComplete ("Zjm2.ashx", {
width:150,
MAX:20,
Delay:5,
Mustmatch:true,
Cachelength:1,
Extraparams: {a:function () {return khid;}},
Formatitem:function (data, I, max) {
Return data.tostring (). Split (",") [1]+ "" "+data.tostring (). Split (", ") [3]+" "+ data.tostring (). Split (", ") [2];
},
Formatresult:function (data) {
Return data.tostring (). Split (",") [1];
}
}). result (function (event, data, formatted) {
id| | ', ' | | ph| | ', ' | | dj| | ', ' | | pm| | ', ' | | ggxh| | ', ' | | jldwmc| | ', ' | | BDJ
$ (this). Parent (). Siblings ("Td[colname= ' DJ ')"). Children ("input[type= ' text ']"). Val (Data.tostring (). Split (",") [2] );
$ (this). Parent (). Siblings ("Td[colname= PM"). Text (Data.tostring (). Split (",") [3]);
$ (this). Parent (). Siblings ("Td[colname= ' ggxh ')". Text (Data.tostring (). Split (",") [4]);
$ (this). Parent (). Siblings ("Td[colname= ' Jldwid ')". Text (Data.tostring (). Split (",") [5]);
$ (this). Parent (). Siblings ("Td[colname= ' BDJ ')". Text (Data.tostring (). Split (",") [6]);
});
});
Grid input code (get text box directly)