I am working on an Angular application and i have a view who is containing an iframe (The purpose of that iframe is just to display a login form).
Like my attempt to submit the form manually was unsuccessful, i tried to log the formular to check if i am really able to reach it but i am confused about how to do that...
the form inside the iframe have name attribute myForm
<iframe id="myIframe" name="myIframe" src="someUrl.com"> <html> ... <form name="myForm" class="form" action="myAction()" method="post" onsubmit="myStuffToDO()"> ... ... </form> ... </html> </iframe> So the way that i am trying to log the form in my controller is like that:
var iframeForm = angular.element.find('myForm'); console.log(iframeForm); the result in hte console is that:
[] I am really confused about how to do that so any help would be really kind.
actionattribute is missing a closing double quote in your snippet.