I have this code:
var guestid = $(this).attr('href');
This gets me the current url, at the end of the url it has ?lid=8
How can I extract the 8 from that url? I tried this:
var guestid = $(this).attr('href').match(/\?lid=([0-9]+)$/);
But it returns null.