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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -