redirect page on dropdown select - jquery code example
Example: location on select dropdown redirect jquery
<select id="dynamic_select">
<option value="" selected>Pick a Website</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.youtube.com">YouTube</option>
<option value="https://www.gurustop.net">GuruStop.NET</option>
</select>
<script>
$(function(){
$('#dynamic_select').on('change', function () {
var url = $(this).val();
if (url) {
window.location = url;
}
return false;
});
});
</script>