I have a textbox in a column of a gridview. Onfocus of the textbox, css implements a background color change. Also, for the edges of the textbox (to be rounded - look nice) I have two divs surrounding my textbox. Onfocus I want these divs to be visible and onblur i want them to disappear. No matter which textbox in the column has the focus, the edges show up in the first textbox. they only consider the onfocus out if you click on a different column altogether. I am desperate! I've been on this for too long and pressure is mounting! I know nothing about javascript and really need help!
function Visible(obj)
{
document.getElementById("leftDiv").style.visibility='visible';
document.getElementById("rightDiv").style.visibility='visible';
}
function Invisible(obj)
{
document.getElementById("leftDiv").style.visibility='hidden';
document.getElementById("rightDiv").style.visibility='hidden';
}