<input type='text' id='first' /> <input type='text' onfocus='this.onkeypress = function () {return document.getElementById("first").value == "";}' />