how to get base url in jquery code example
Example 1: js get base url
var url = window.location.origin;
Example 2: jquery get base url
console.log(window.location.origin);
var url = window.location.origin;
console.log(window.location.origin);