Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to implement
Message
De
16/10/2012 23:42:13
 
 
Information générale
Forum:
HTML5
Catégorie:
Autre
Divers
Thread ID:
01555076
Message ID:
01555150
Vues:
84
This message has been marked as the solution to the initial question of the thread.
You'll need to javascript (well, jquery) on the page.

See this: http://stackoverflow.com/questions/480735/select-all-contents-of-textbox-when-it-receives-focus-javascript-or-jquery





>Hi all,
>
>I would like to have all my input textboxes to have all text selected when I enter it - same as in VFP with the format property K, if memory serves.
>
>What is the simplest way to implement such functionality?
>
>Also, I have right now
>
><div id="Phone">
>        <div class="float-left">
>            <div class="editor-label">
>                @Html.LabelFor(model => model.Phone1)
>            </div>
>            <div class="editor-field">
>                @Html.EditorFor(model => model.Phone1)
>                @Html.ValidationMessageFor(model => model.Phone1)
>            </div>
>        </div>
>        <div class="float-right">
>
>            <div class="editor-label">
>                @Html.LabelFor(model => model.Ext1)
>            </div>
>
>            <div class="editor-field">
>                @Html.EditorFor(model => model.Ext1)
>                @Html.ValidationMessageFor(model => model.Ext1)
>            </div>
>        </div>
>    </div>
>
>The Ext is now close to Phone, which is what I wanted, but both controls are too wide and sort of overlapping. What is the right way of making these controls smaller? Should I attempt to add width to the div?
>
>Thanks in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform