need a help with converting array, for example "01b,02b,03c" to a list of selectors "#01b,#02b,#03c which I can use as list of selectors in the jQuery
HTML
<input type="radio" id="01b"/>
<input type="radio" id="02b"/>
<input type="radio" id="03c"/>
JavaScript
var arr = ['01b','02b','03c'];
// var newArr = would be a list of selectors, like ['#01b','#02b','#03c'];
// then I would use it in the JavaScript to pre-check radio buttons
$(newArr).prop('checked', true);
So output would be like
<input type="radio" id="01b" checked="checked"/>
<input type="radio" id="02b" checked="checked"/>
<input type="radio" id="03c" checked="checked"/>
I have tried to use something like
var newArr = arr.each(function() {
return '#'+ $(this);
});
But it seems to be far from valid;