Solved

Text over a img in a div with an associated animation in JS JQuery

Posted on 2011-09-05
1
223 Views
Last Modified: 2012-05-12
I have a div with an associated animation. Clicks on the img triggers the animation. I put a text description in a nested div, over the img. The problem is that now clicking on the text the animation dont work anymore.
0
Comment
Question by:ec2011
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 36486339
So, the image is inside the parent div and is a sibling to the nested div. And you have given the click event to image, which triggers the animation to parent div. And you want the animation to be triggered when you click on its sibling div also???

<div id="parentDiv"> \\on which you have associated animation
  <img src/> \\on click triggers animation
  <div id="nestedSiblingDiv">SomeText</div>
<div>

Is that correct?

You just have to associate animation to click of parent div rather than image
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question