badwolfff
asked on
How do I animate a div inside an iframe using Jquery?
I have a main page and on it I have a button and an iframe. Inside the iframe I have an external html page with a div on it. Using the button on the main page how do I animate the div inside the iframe?
I have tried something like this:
$(document).ready(function (){
$("a").click(function(){
$("#iFrameID").contents(). find("#div ID").anima te({"top": "-450px"},{ queue:false, duration:800, easing:"quartEaseInOut"});
});
});
This does not work. Could anyone show me how to fix this code?
I am attaching a test project here. test.zip
I have tried something like this:
$(document).ready(function
$("a").click(function(){
$("#iFrameID").contents().
});
});
This does not work. Could anyone show me how to fix this code?
I am attaching a test project here. test.zip
ASKER
sorry could you please illustrate with an example?
I didn't really understand your explanation.
I didn't really understand your explanation.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and ofcourse make the externalpage.html, trigger the script on the GET animate = 1