Jquery submit form not working from a pop up window

crystalcrow

New Member
here is my html:\[code\]<!DOCTYPE html><html><head></head><body onload="load()"><script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'></script><script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js'></script><div id="container"><form id="inputFrm" action="/hello" method="post"><input name="value" id="myValue" value=http://stackoverflow.com/questions/13758988/1000 size=8 /><input name="symbol" id="mySymbol" size=10 /><input type="submit"><input type="button" id="mySubmitBtn" value="http://stackoverflow.com/questions/13758988/MySubmit"></table></form></div><script>$(document).ready(function() { $("#mySubmitBtn").click(function () { var value =http://stackoverflow.com/questions/13758988/document.forms["inputFrm"]["myValue"].value; var symbol =document.forms["inputFrm"]["mySymbol"].value; alert(value) alert(symbol) $("#inputFrm").submit(); }); });</script></body></html>\[/code\]This html code stands for a separate window which is opened by another page.For example, imagine that this html is returned by a server as a response to a 'new' request:\[code\]window.open('/new')\[/code\]On this window the form is not submitted by the jquery submit function call. What am I doing wrong here?I've looked at similar posts and didn't find an answer to this specific code.
 
Back
Top