Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select text on entry
Message
 
 
À
16/10/2012 13:15:41
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01555102
Message ID:
01555115
Vues:
35
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform