Forums

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

Home Forums JavaScript Mysterious—-> id="header"

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #29943

    I’m working with this contact dropdown thing.

    http://inspectelement.com/demos/jquerycontactus/

    I’m having some problems with the id="header" that is found in the container div. Why is it there? There is no reference to it in the CSS or anywhere! And the dropdown does not work unless it is there

    Anyone know what the purpose of it is?

    Thanks,
    Aaron

    #81619
    jamygolden
    Member

    Are you sure it’s required? It seems to work fine without it.

    #81643
    Kestral
    Member
    "jamy_za" wrote:
    Are you sure it’s required? It seems to work fine without it.

    I saved the HTML file to my localhost and deleted id="header" and it didn’t work for me. It did work when I removed it with FireBug, however.

    #81654
    jamygolden
    Member

    I’m not sure this is going to fix it, but this is an odd problem, so it might :lol:

    Code:
    $("#contactArea").height(0);

    $("#example").click(function(){
    if(!$("#contactArea").is(":animated")){
    $("#contactArea").slideToggle(1700, ‘easeOutBounce’);
    }
    });

    I prefer this to the animate() function. And the ‘if #contactarea is not animated’ prevents queueing.

    What exactly happens when you remove #header?

    #81677

    If i remove the header the JQ no longer works. Also if I try to work it into my original header it doesn’t work.

    That is the problem, I now have two headers and cant get rid of either one or it doesn’t work.

    #81664
    jamygolden
    Member

    Try fixing up the xHTML error. http://validator.w3.org/
    The ‘area-required’ errors can be ignored.

    If the problem continues, I’ll make it my life’s mission to solve the issue :lol:

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