>For selecting text try this (untested):
>
$(document).ready(function () {
>
> $("form div input").focus(function () {
>
> $("form div").each(function () {
> $(this).css("background-color", "white");
> });
>
> $(this).parent().css("background-color", "#F2FAED");
>
> $(this).select();
> });
>
>});
>
>As for setting the width of the div, the width attribute is probably deprecated, but setting it through the style should still work (and I believe is the preferred way). The same goes for your controls.
Thanks, Rob. select worked fine for tabbing through controls (in IE), but not when I initially clicked on the control. I guess I can not have everything.
I'll try to play with style, so far I can not get the simple behavior I want on having two big div side by side and inside them two more div also side by side.
If it's not broken, fix it until it is.
My Blog