I want input objects to have a light yellow background when they have focus. Here's how I call my function:
And here's my function.
When the object gets focus I get an error message that says "member not found". What is it talking about? And how can I get this to work?
Code:
input name="monthsVacant" id="monthsVacant" disabled="disabled" onFocus="yellowOn('monthsVacant')"
Code:
function yellowOn(vObject){
var vObject; //object being highlighted
document.getElementById(vObject).style="background-color:#FFFFCC";
}
Comment