How can I set the Name attribute of an input field using Jquery? July 30, 2023 by Tarik $('#resetPrompt').click(function(){ $('#input1').attr('name', 'other_amount'); });