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.