I was trying to change the type attribute (using jQuery) of an input element from submit to button when I got this error: type property can’t be changed Apparently, you can’t change the type attribute of an input element once it’s part of the DOM. I figured out a way to do it by cloning…