Here's my JQuery mask for textbox in $(document).ready():
$(
"#MyTextbox"
).inputmask({
"mask"
:
"(99:99:9{6,7}:9{1,},{0,1}){1,}"
,
'autoUnmask'
:
false
, clearIncomplete:
false
});
Model contains values as a list so i wrote the element like this:
@(Html.Kendo().TextBox()
.Value(
string
.Join(
","
, Model.Objects.Select(x=>x.SomeValue).ToList()))
.Name(
"MyTextbox"
)
.HtmlAttributes(...))
and instead of
99:99:9999999:999,66:66:6666666:666,33:33:3333333:333
value shows up like
99:99:9999999:9996666666666666633333333333333
What can i change to keep the mask for the whole string?