Skip to main content

All Questions

Tagged with
0 votes
2 answers
226 views

Show div if not already visible

I have some code which adds text to the div then shows it. $("#messageBox").addClass('msg-error').text("Your selected date is no longer available due to the appointment duration. Please select an ...
Elliot Reeve's user avatar
0 votes
1 answer
2k views

Simple memory game

I have modified this memory game to the way I want it. My problem is I'm trying to figure out how to make the images visible from the beginning when the game starts, i.e. I don't want the images ...
Rnft's user avatar
  • 115
0 votes
1 answer
177 views

Show one div and close all the others

Lets say that I have 3 differentboxen: <div id="1" class="box" style="visibility:visible"><p>Box 1</p></div> <div id="2" class="box" style="visibility:hidden"><p>...
Secret Coder's user avatar
1 vote
2 answers
6k views

JQuery testing if an element is visible or hidden and then add remove classes

I have a div that starts off on page load hidden. When I toggle the "+" element, the relative div toggles to visible. I am trying to add a class based on is(":hidden") or not with an if - else ...
Danny Englander's user avatar
2 votes
5 answers
3k views

Hiding images with blank src using jquery

I have 4 sub images on a page that get their src attribute from a database. they all have a class="subImage". When there is no DB entry I would like to hide the element as opposed to have a broken ...
Pete Norris's user avatar
  • 1,056