Is it possible to convert a string into a variable name while in jQuery's document.ready
?
If I try this in pure JS
var boh = "blahblah";
console.log(window["boh"]);
returns blahblah
, while if I go with JQuery
$(document).ready( function() {
var boh = "blahblah";
console.log(window["boh"]);
});
returns undefined