So I’m trying to force urls entered into the search box to have “http://” forced on to them because the url doesn’t work without it.
var mySite = $('.search').val();
if (mySite -="http://"){
alert('http://').append(mySite);
};
Sorry if this code is horribly wrong I’m just trying to hash out the idea here.
If you want case-insensitivity
…Or you can just