Hi! I was hoping someone could help me with this seemingly simple task. I have a page that loads with a bunch of input boxes (it's a timesheet). When the user clicks on an input field, I want the field to highlight (just like when a window puts a field in focus during the onload event).
Why? Well, the users are entering time for a particular project. The time all defaults to zeros to start with (per the user's request). When they click in the field and add a value (7.5 for example), they end up with 07.5 in the field or are fussing with backspacing to remove the zero. I just thought if I could get the field to become "in focus" when someone clicks on it, thus having the entered value highlighted, then when they begin typing in the field, the entered value goes away and makes data entry less cumbersome. The problem is that it's just not working.
Here's the code I'm using:
Anyone have an idea what I'm doing wrong?
Thanks for your help!