Within a function, I am creating a new variable that contains an HTML element. The variable declaration works fine in Firefox for example, however it comes up "undefined" in Google Chrome.
function updateName(num)
{
name = document.getElementById("id_name_"+num);
}