A: 

Not sure if this is just a typo, but in your code for 01, it should be

$(document).ready(function() { $('#{0}').custSelectBox(); });

and not

$(document).ready(function() {{ $('#{0}').custSelectBox();}});
Tim B James
No, I will need double {{ }} when using string.format otherwise it will give invalid string error.
San