Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select text on entry
Message
De
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:
01555114
Vues:
37
This message has been marked as a message which has helped to the initial question of the thread.
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform