GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Wednesday, December 22, 2010

css jQuery

To get the value, just type:
var color = $('#satu').css('background-color'); // get the value
$('#dua').css('background-color','red');        // set the value
$('#tiga').css({'color':'blue', 'font-size':'24px', 
                'background-color':'lime'});
Share/Bookmark

No comments:

Post a Comment