I have a web mask editor with an Input Mask set as "0000->00000000" in order to display a field with a year component, a dash, followed by a 8 digit number, such as "2013-00000001" (YYYY-NNNNNNNN).
<ig:WebMaskEditor ID="YearAndNumberControl" runat="server" Width="100%" Height="16px" DisplayMode="Mask" InputMask="0000->00000000">
This mask ensures that data can only be entered if it adheres to the YYYY-NNNNNNNN format. However, I am setting the text of this editor as the current year on page load (attempted to pre-populate the year component of the mask). When a user tabs into this control, I would like to highlight the NNNNNNNN component of the mask instead of the entire control. I have tried the various SelectionOnFocus options and have not been able to produce the desired result. Is there any way I can get the desired effect with this control?
The bottom portion of my post got formatted oddly, it read:
Hello Tom,
There is no such built-in functionality, but you can do this using the same approach described here:
http://stackoverflow.com/questions/3085446/selecting-part-of-string-inside-an-input-box-with-jquery
Hope this helps.