I recently asked a question
how would you apply this jquery
$(".homeimage").wrap("<a href='" + location.protocol + '//' + location.hostname + "'></a>");
only if the url has a pathname for example http://google.com/search but dont apply the jquery if the url is http:/google.com/
1 Answer