You have a syntax error in your code
my_input.type="text;
should be
my_input.type="text";
solved Javascript: Created input field doesn’t show
You have a syntax error in your code
my_input.type="text;
should be
my_input.type="text";
solved Javascript: Created input field doesn’t show