Hi, I'm fighting with this piece of code:

var $input_new =
$parent.children(".materiale:last").children("input[name^='alias_']:last");
var lunghezza = $input_new.attr("name").length;
var nuovo_nome = $input_new.attr("name").substr(0, lunghezza-1) +
(quanti);
$input_new.attr("name", nuovo_nome).attr("value",
"").prev("label").attr("for", nuovo_nome);

the last line is the problem.
on FF everything goes right, but in IE7, this part

$input_new.attr("name", nuovo_nome)

doesn't have any effect at all.
funny thing is that the attribute 'value' is set to "", and even the
attr 'for' of the prev label changes correctly!!!
I'm pretty confused... what could I do? any ideas? thank you :)

andrea

Reply via email to