I am trying to make an iframe change based on an input text field.
The line that I want to add to the URL that the user will enter is in the middle of the URL.
I tried it, but I'm not quite sure how to determine it correctly.
<script> $("#search").click(function(e) { e.preventDefault(); var url = "http://www2.sdfsdf.com/admin/agent_order_srch_ordet.asp?action=searchStrPostcode&idOrder=" $('#search').val(); "&Submit=Search"; $("#someFrame").attr("src", url; }) </script>
source share