i tried this code but its not working.. when i on-focus textbox it shows error
function ChangeBgColor(obj, evt) { if(evt.type==\"focus\"
Yep, you should try this javascript code to change the background color for this element:
var obj = document.getElementById("yourId"); obj.onfocus = function() { obj.style.backgroundColor = 'red'; }
Now you can change whatever color you want