You can achieve this by pure JavaScript. Just add id
to your <select>
elements.
<select name="status" id="status">
and
<select name="plan" id="plan">
And add the JavaScript at the end of HTML <body>
.
<script type="text/javascript">
function set_url(){
status = document.getElementById("status").value;
plan = document.getElementById("plan").value;
s = url + status + plan;
//alert(s);
document.getElementById("Iframe2").src = s;
}
url = "http://www.google.com/search?q=JavaScript";
document.getElementById("status").onchange = set_url;
document.getElementById("plan").onchange = set_url;
</script>
NOTE: The base URL should be stored in a variable; like url
in above example.