Jquery click function effect

Posted by Jordan Pagaduan on Stack Overflow See other posts from Stack Overflow or by Jordan Pagaduan
Published on 2010-06-15T11:15:24Z Indexed on 2010/06/15 11:22 UTC
Read the original article Hit count: 236

Filed under:
|

I have a jquery code, but I'm a little bit confused on how can I put a css on this:

$(document).ready(function () {
    $('span.account-menu').click(function () {
    $('ul.menu').slideToggle('medium');
    });
});

I wanted to add this css in the click function.

border: 1px solid #999999;
background-color: #333333;

How can I do that?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery