cara mengatur atribut nama di jQuery

$('#resetPrompt').click(function(){
    $('#input1').attr('name', 'other_amount');
});
Hamzach