This code doesn't work
jQuery.each(["Alloggio","Macchina","Aereo","Treno"], function(){
t = this;
$("#ChkPrenotazione" + t + "Default").change(function(){
$(".Chk" + t).val($(this).val());
});
});
I want that t inner on change event is equal to "Alloggio" or "Macchina" or "Aereo" or "Treno"
How can i fix it?
thanks