Reputation: 15
$.ajax({
type: 'GET',
url: 'report.php',
data: ({url: href})
});
alert(href);
href = https://website.com
how do i remove the https from the url ?
Upvotes: 1
Views: 146
Reputation: 10680
Just use Javascript's replace function on href.
href.replace('https://','');
Upvotes: 2