function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sateesh KumarSateesh Kumar 

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
                            }
                        }));
                    },
                   
pconpcon
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.