Code:
var arrival"+s+" = document.forms["form"].elements["arrival"+s].value;
Is there a way to create a variable dynamically in JavaScript?
The above code doesnt work, also tried:
Code:
var arrival[s] = document.forms["form"].elements["arrival"+s].value;
www.crmpicco.co.uk