Trying to generate Google Map from pure jQuery way I cant' render map when I use the ID selector as:
var map = new google.maps.Map($("#map_canvas"), mapOptions);
the maps is working when I use the finding element id in simple JavaScript method as:
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
can you please help me to understand why this is happening?