css method not working.
css method not working.
Well I actually have 2 questions, but the first one is the css method. I have 3 buttons that I want to change the background color to blue and font color to white. As far as the directions go this is not after any click event, the click events do something else. So I tried using the button ID, and the Div ID the button is in to change the color but no luck. #area3 is the div id, and #move up is the button id, but again neither worked
- $(document).ready(function(){
- $("#area1").offset({top: 250, left: 250});
- $("#area2").offset({top: 250, left: 400});
- $("#area3").offset({top: 320, left: 400});
- $("#area4").offset({top: 350, left: 800})
- $("#area5").offset({top: 370, left: 800});
- $("#area6").offset({top: 450, left: 800});
- $("#area3").css("backround-color", "blue");
- $("#moveUp").click(function(){
- $("#area3").scrollTop(50);
- });
- });