Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.86 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Manipulating background-colors
  2. <div class="myTabs">
  3.     <div class="ajax__tab_active">
  4.         <div class=".ajax__tab_inner" style="width: 100px; height: 100px; background-color: green;" >
  5.  
  6.         </div>
  7.     </div>
  8. </div>
  9.        
  10. .myTabs .ajax__tab_active .ajax__tab_inner{
  11.  width:100px;
  12.  background-color:green;  
  13. }
  14.        
  15. $(document).ready(function() {
  16.     $('.myTabs .ajax__tab_active .ajax__tab_inner').css('background-color', red);
  17. });
  18.        
  19. $('.myTabs .ajax__tab_active .ajax__tab_inner').css('background-color', 'red');
  20.        
  21. var primaryColor = '#f00';    // Red
  22.  
  23. $('.myTabs .ajax__tab_active .ajax__tab_inner').css('background-color', primaryColor);
  24.        
  25. primaryColor is not defined
  26.        
  27. <div class="ajax__tab_inner" style="width: 100px; height: 100px; background-color: green;" >
  28.        
  29. <div class=".ajax__tab_inner" style="width: 100px; height: 100px; background-color: green;" >