You need to sign in to do that
Don't have an account?
Sateesh Kumar
success: function( data ) {
response( $ac.map( data , function( item ) {
return {
label: '<a><table><thead><tr bgcolor="#9A9595"><th>AccName</th> <th>BillingCity</th> <th>BillingCountry</th></tr></thead> <tbody><tr><td width="50%">'+
item.AccName+'</td> <td width="70%">'
+item.BillingCity+'</td> <td width="70%"> '+item.BillingCountry+
'</td></tr></tbody></table></a>',
value: item.AccName
}
}));
},
HTML table header keeps repeating for each row of table
success: function( data ) {
response( $ac.map( data , function( item ) {
return {
label: '<a><table><thead><tr bgcolor="#9A9595"><th>AccName</th> <th>BillingCity</th> <th>BillingCountry</th></tr></thead> <tbody><tr><td width="50%">'+
item.AccName+'</td> <td width="70%">'
+item.BillingCity+'</td> <td width="70%"> '+item.BillingCountry+
'</td></tr></tbody></table></a>',
value: item.AccName
}
}));
},
pcon
This is because the .map function is called for every one of your rows. You'll need to change how you render the information and place it in a table and just return your rows.