You also have two elements with submit_btn identifier, the identifier must be unique.
I would modify them to be different, and then try:
$("#edit_btn").on('click', function() { $("input[type='text']").removeAttr('disabled'); });
Then to disconnect again:
$("#submit_btn").on('click', function() { $("input[type='text']").attr('disabled', 'disabled'); });
You can change the input[type='text'] selector if you have more input on the page that you do not want to disable.
Perhaps change your <input> elements to include the js-disable class, and then select the $(".js-disable") selector $(".js-disable") instead of input[type='text']
source share