Good afternoon, I'm trying to run a function inside an iframe to change the background-color of a button that is in another Iframe, I started to do some testing and I could not 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 the status of iframe B
<div id="divBotoes"> <iframe id="iFrameBotoes"></iframe></div>
The two iframes are in the same html (parent), so I need iframe A to make changes to Iframe B, the buttons are cast in a C # function and inserted in iframe B.