Update iframe src based on input value
<p>I am trying to make an iframe change based on a text input field.</p>

<p>The string that I want to append to the url that the user will input is in the middle of the url though.</p>

<p>Have tried but not quite sure how to define it correctly</p>

<pre><code>&lt;script&gt;

$("#search").click(function(e) {
        e.preventDefault();
 var url = "http://www2.sdfsdf.com/admin/agent_order_srch_ordet.asp?action=searchStrPostcode&amp;idOrder=" $('#search').val(); "&amp;Submit=Search";
        $("#someFrame").attr("src", url;
    })
&lt;/script&gt;
</code></pre>
