Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select text on entry
Message
 
 
To
16/10/2012 13:15:41
General information
Forum:
ASP.NET
Category:
Client-side development
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01555102
Message ID:
01555115
Views:
36
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform