Javascript Setting Input Type In Dynamically Created Form Is Ignored

Javascript Setting Input Type In Dynamically Created Form Is Ignored