Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-09-05
1
Medium Priority
?
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Gurvinder Pal Singh earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

715 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