Saturday, 31 August 2013

Store javascript variable into array

Store javascript variable into array

Is it possible to store variables into arrays? What is the correct way of
doing it? I can't seem to be able to store it in this way.
var fxVal = '<?php echo $fxVal;?>';
var equitiesVal = '<?php echo $equitiesVal;?>';
var boVal = '<?php echo $boVal;?>';
var balance = '<?php echo $account_balance;?>';
var myData = [fxVal,equitiesVal,boVal,balance];

No comments:

Post a Comment