I am trying to make an iframe change based on a text input field.
The string that I want to append to the url that the user will input is in the middle of the url though.
Have tried but not quite sure how to define 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>