Loading a file into a div, CSS/UI not applying styles to classes in Firefox, but will in IE, kinda...

Loading a file into a div, CSS/UI not applying styles to classes in Firefox, but will in IE, kinda...

Example of what's going on:

  1. (".analyzer").click(function () {
  2. if ( $(this).attr('id') == 'ct50' ) {
  3. $('#analyzers').load('ct50.html');
  4. $('.CT50').show();
  5. }
  6. else if ( $(this).attr('id') == 'status' ) {
  7. $('#analyzers').load('status.html');
  8. $('.Status').show();
  9. }
  10. else if ( $(this).attr('id') == 'plus' ) {
  11. $('#analyzers').load('plus.html');
  12. $('.Plus').show();
  13. }
  14. else if ( $(this).attr('id') == 'connect' ) {
  15. $('#analyzers').load('connect.html');
  16. $('.Plus').show();
  17. }
  18. else if ( $(this).attr('id') == 'ct500' ) {
  19. $('#analyzers').load('ct500.html');
  20. $('.CT500').show();
  21. }
  22. else if ( $(this).attr('id') == 'advantus' ) {
  23. $('#analyzers').load('advantus.html');
  24. $('.Advantus').show();
  25. }
  26. else if ( $(this).attr('id') == 'dca2000' ) {
  27. $('#analyzers').load('2000.html');
  28. $('.DCA2k').show();
  29. }
  30. else if ( $(this).attr('id') == 'vantage' ) {
  31. $('#analyzers').load('vantage.html');
  32. $('.Vantage').show();
  33. }
  34. $(".button").button();
  35. $('#menu').hide();
  36. $('#customer').show();
  37. $('#general').show();

So when I loaded the div, the buttons were just ugly, grey standard buttons.  I added line 36, and it fixed it in IE, but it won't work in Firefox.  I have no idea what else to do.