I need to assign the value of a querystring token to a Javascript variable in order to manipulate the value and write it later in the document. So far I have tried variations on the theme below without success. Typically, the page just fails to load.
var mbrInfo = $(myMembershipType);
document.write(mbrInfo.substring(3));