I would like to iterate over the below and output a string that combines the different settings:
Loop through this:
config : {
settings : {
width: 880,
height: 495,
byline: false,
title: false,
portrait: false
}
}
And output:
var output = '&height=495&width=880&title=false&byline=false&portrait=false',
How would I go about this?
I don’t know whether you explicitly want to loop, but you can simply use
jQuery.param:The order may be different but for a query string that does not matter.