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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -