Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript click function not working

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40091
    dynamyc
    Member

    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?

    #111094
    martinwolf
    Member

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

    #111121
    Vermaas
    Participant

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.