1
Good afternoon guys, I’m trying to perform a function inside an iframe to change the background-color of a button that is in another Iframe, I started to do but I’ve done several tests and I can’t get anyone to help me.
//Iframe A
<hmtl>
<head>
<script>
function mudarCorBotao ()
{$(":button").contents("iFrameBotoes").find("btnId").css({"background-color": "yellow"});
</script>
<head>
<body>
codigos...
</body>
</html>
This is iframe condition B
<div id="divBotoes"> <iframe id="iFrameBotoes"></iframe></div>
Note: The two iframes are in the same html(parent), so I need iframe A to make changes in Iframe B, the buttons are created in a c# function and inserted in iframe B.
Thanks, it worked out!
– Matheus Vinicius