Grow your CSS skills. Land your dream job.

click function not working

  • # October 1, 2012 at 10:51 am

    I have this code:

    jQuery(‘.header-search, .calendar ‘).click(function(){
    jQuery(‘.header-search-form’).css({ ‘display’ : ‘block’ });
    jQuery(‘.s’).focus();

    });
    .calendar is a

    Calendar
    The problem is that JUST .header-search is working.
    What’s wrong?

    # October 1, 2012 at 11:43 am

    Works fine for me: http://jsfiddle.net/qLUHy/

    # October 1, 2012 at 5:42 pm

    This is maybe more bulletproof : http://jsfiddle.net/qLUHy/1/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".