maybe it seems easy, but I could not find any useful solution for it. Let's say I have an url with GET value of:
/?userid=1
How can I pass the value of 1 using AJAX? Also the userid changes depending on the link that has been pressed so it cannot be statically sent with AJAX.
$.ajax({
                    type: "POST",
                    url: "actions.php?action=getUserProfileData",
                    data: "userid=" + userid, // I am talking about this part
 
     
     
    