rob897
12-11-2009, 03:51 PM
Here is my code
function copy_grid(from,to)
{
var copy_from = from +"_24_product_cost"; // in this instance from = grid1_White
var copy_to = to;
var tmp_field = getElementById(copy_from).value; // ERROR: getElementById is not defined
}
document.product.grid1_White_24_product_cost.value // works as expected
but I wanted this to be dynamic.
Any ideas?
function copy_grid(from,to)
{
var copy_from = from +"_24_product_cost"; // in this instance from = grid1_White
var copy_to = to;
var tmp_field = getElementById(copy_from).value; // ERROR: getElementById is not defined
}
document.product.grid1_White_24_product_cost.value // works as expected
but I wanted this to be dynamic.
Any ideas?