for loop - How to concatenate the string value to the integer value in Jquery? -


How to add integer values ​​with string in jquery I am using Google Maps and working with map markers I am

 for  (var x = 0; x & lt; addresses.length; x ++) {infowindow1.open (map, x); }   

How can I add variables 'x' with infowindow to infowindow1, infowindow2 and so on

any signal?

Maybe this way:

 for  (var x = 0 ; x & lt; addresses.length; X ++) {window ["Infondo" + x]. Open (map, x); }   

This only works when infowindow + Any number is in a global area.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -