See example by clicking the link below or image:. David ODey 11, Points. I kept the same behavior as your workspace. That could even be the basis for a css only approach to this problem. Remember that, when you specify duration parameter the jQuery toggle method becomes an animation method. In this example, the specialEasing option is used. You shouldn't hide the pictures via CSS because if a user has JavaScript disabled, they won't be able to see any of the pictures. In duration parameter, you can use strings e. The method uses are duration, ease and call back function in the toggle method. However, I think I'd be able to simplify it for better coding practices, but I don't know how.
Use () jQuery manipulators, or better yet just () /.hide() on the image once you've obtained a handle to it (e.g. $('#img' + id)).

However, i strongly recommend you read the Jquery docs. Examples. jQuery hide() Demonstrates a simple jQuery hide() method. jQuery hide() Another hide() demonstration.
Video: Jquery hide image by id how to hide paragraph by id element using jquery
How to hide parts of text.
The div's would need id's to match the fragment identifier. It is working jus great now! Return To Top.

I forgot my password. I modified the code so that it will act accordingly. Hey Ana, Can you post a snapshot of your workspace in a new comment? The callback function will execute as the animation is done.
Simplify Show/Hide jQuery code Treehouse Community
hide()Returns: jQuery. Description: Hide the matched elements. We can animate any element, such as a simple image:. id="hider">Hide.
jQuery toggle method to show/hide elements with 6 examples
Use ()[^] function. Hide Copy Code.

$('#imageId').hide(); // Replace the correct ID of Image.
You may perform some action at the end of animation or show some descriptive message to your visitors. No id's are needed.
hide an image without id/class jQuery Forum
The menu items are created inside a parent div element by using unordered list tag, ul. The image is toggled if you keep clicking on the same button. The div's do need to be in the same order as the buttons they correspond to but you would likely be doing this anyway for organization and maintenance reasons.