var url = "http://Queryhome.com"; $(location).attr('href',url);
You can even pass URL directly to attr() method, instead of using a variable.
On top of what mani has suggested -
jQuery is not necessary, and window.location.replace(...) will best simulate an HTTP redirect.
For example:
// similar behavior as an HTTP redirect window.location.replace("http://tech.QueryHome.com");
Can someone help me with this (Better to provide code for top 3 providers Google, Microsoft and JquerySite).
I am trying to control input field using jQuery previously I had only numbers and could use $(this).autoNumeric(), now I have come around where it is required to change the input field in form of 'Numbers dash Numbers'. i.e:- 1.343-45.643
Is there anything similar to autoNumeric which can do my work apart from writing my own regex and jquery method.