Moving ajax input to new html page