On Jun 9, 9:35 am, simon <si...@uvfx.tv> wrote:
> $.myvariable1
> $.myvariable3
> $.myvariable2
> now I would like to add the number part of the variable to it
> dynamically.

var i=1;
$['myvariable'+i] === $.myvariable1

See: http://www.javascripttoolbox.com/bestpractices/#squarebracket

Matt Kruse

Reply via email to