meccici un ID ai due input ed usa document.getElementById()