I have the string in javascript in the following format,
var a = "";var b ="";var c= "";
var str = "ItemID=123&Name=AO Document&Dept=Testvalue";
I need to split from str and get Itemid value in a,name value in b,Dept value c.How can I do this in javascript ?