I have some HTML drop-down menus, and then dependent upon the selection I then highlight the appropriate column heading in a table. I do this by changing the css class of that <td>
tag like so:
$("#searchcolour").attr("class", "filledselect");
$("#searchtask").attr("class", "filledselect");
$("#searchshape").attr("class", "filledselect");
$("#searchpivot").attr("class", "filledselect");
The highlighted column headings are dependent upon which ones have been selected. There can be as many as 20 column headings selected. This extra code for highlighting puts a 1-2 second delay on the updating of my page in IE (the jquery also filters the table results at the same time). The speed in other browsers is fine.
Is there a faster way I could achieve this effect?