I have a string:
title=Hello world&dropdown=on&count=on&hierarchical=on
and I want to explode this string from &
, Like;
title=Hello world
dropdown=on
count=on
hierarchical=on
I already know the this names title, dropdown, count,hierarchical (but this names are not fixed, it can be anything),
Now I want to match this names (name means words before equal to sign) to name I know, if match then get value (words after equal to sign), like:
if (name == myname) then get value
var myname = dropdown;
if (dropdown == myname)alert(dropdown.value)