I\'m working on an existing script at the moment which uses Ajax, something I\'ve never worked with before. I have a variable set in my javascript file which gets its value
Or you can do this:
data: "userID=" + onlyID + "&credoff=" + credoff
don't forget the ampersand! &
... data: { userId: onlyID, credoff: credoff }, ...