User Profile

Collapse

Profile Sidebar

Collapse
mberkom
mberkom
Last Activity: Feb 2 '09, 01:40 AM
Joined: Feb 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mberkom
    replied to Jquery: Not Has Class
    I'm afraid thats not the problem. The quotes are there because I forgot to get rid of them. When I implemented the code the quotes were there so I could put a variable in like this:
    Code:
    "+variable+"
    So the actual code is this:
    Code:
    $("div .card:nth-child("+currentCard+")").addClass("correct").removeClass("incorrect");
    The currentCard variable is equal to 1.
    See more | Go to post

    Leave a comment:


  • mberkom
    started a topic Jquery: Not Has Class

    Jquery: Not Has Class

    I've got a jquery selector I'm trying to get done and since I'm somewhat new to jquery I'm stumped. Essentially. I'm trying to get a div within divs with the class "card" that do not have the class of "correct" and then select the first one out of the list.

    Code:
    $("div .card:not(.correct):nth-child("1") .question ").css('display', 'none');
    After spending quite a while trying to get...
    See more | Go to post
No activity results to display
Show More
Working...