I have the following HTML element:
Annual Leave&l
function foo(value) { var e = document.getElementById('leaveCode'); if(e) e.value = value; }