Selecione a entrada pelo nome JavaScript
var element = document.querySelector("form[name='second'] input[name='secondText']");
Joyous Jellyfish
var element = document.querySelector("form[name='second'] input[name='secondText']");