How to get id (any parameter) from url using jquery?
BY Wpdevkit
March 14, 2020
Jquery Get id (any parameter) from url using jquery?
jQuery(document).ready(function(){
var query = window.location.search.substring(1);
var vars = query.split("=");
var ID= vars[1]; alert(ID);
});
about authors
Sandip Das
Web Developer
Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.
let’s share this idea
A problem is just the absence of an idea to solution... Lets exchange thoughts