How can i add inline style in JS code? : Is it possible to style inline the div ".trigger" on the following code and set its  display to block ?

    $('.trigger').toggle(function(){
    $('.greendiv').animate({'height': '300px', 'width': '400px'}, 200);
    }, function(){
    $('.greendiv').animate({'height': '200px', 'width': '200px'}, 200);
    });