mercredi 24 décembre 2014

TrimStart() spaces in textbox dynamically, ASP.NET MVC


I'd appreciate any advice.


Let's say I have a simple @Html.EditorFor(m=>m.SomeTextField).


When user types some text into it and leaves the textBox (focusOut()) I need to shift the text to the left, so that it removes all spaces in the start.


I know I could handle focusOut event and remove spaces, but is there a better way?


Thanks a lot!





Aucun commentaire:

Enregistrer un commentaire