I have a select
like this:
<select id="Link" name="Link"><option value="">Link Websites</option>
<option value="www.google.com">test link</option>
</select>
I want to redirect to www.google.com
when user select test link
option. Here the js I used:
$("body").on("change", ".site > select", function () {
if ($(this).selectedIndex != 0) {
window.location.replace($(this).val());
}
});
But instead of getting redirect to www.google.com
, I got something like localhost:8000/www.google.com
. Is this have anything to do with URL filter
on MVC3? Or I'm missing something?