How do I define multiple CSS attribues in JQuery?

You can string up your classes this way.

$("#message").css("width", "450px").css("height", "100px");

… this gets old real fast, this way is more effective.

$("#message").css( {width : '450px', height : '100px'} );

Back to Blog

Say Hello

You can reach me by email, I'd love to hear from you.