13 Aug 2008, 3:14 PM
|
MADCookie
Joined on 05-30-2008
Posts 49
|
TIP: label UI
|
|
|
|
I just figured this out and thought I'd share with you. I hope you all like it and find it useful. I feel it just adds a real nice touch to the user interface.
Here is my HTML
| | <label for="<%=UltimateSearchInput1.SearchTextBox.ClientId %>">Enter Search Words:</label> <karama:UltimateSearchInput id="UltimateSearchInput1" runat="server" /> |
The cool factor is the 'for' attribute on the 'label' tag. If the user clicks on the text "Enter Search Words:", then the cursor will go active on the textbox. This is nice because the user could be trying to click inside the textbox, but miss and the cursor still goes to the textbox. This is also very handy on larger forms when you tab between entry points. The tab takes focus to the text but the 'label' sends focus to the textbox.
Thanks Karamasoft for exposing
|
|
|
|
|
|
|
|
|