I have some code like this,
<form id="abc">
<input type="text" id="txt" />
</form>
and now I want to redirect like this,
var temp = $("#txt").val();
url = "http://example.com/" + temp;
window.location.replace(url);
// or window.location(url);
Is there anyway in jQuery to solve this? It still lets me have url = http://example.com.