Tuesday, 15 February 2011

html - Numeric password entry to force numeric keypad -



html - Numeric password entry to force numeric keypad -

with normal numeric input fields, bootstrap allows set class on command forcefulness numeric entry keypad on mobile devices.

is there way password type entry, 4 digit numeric pin?

i have tried this:

@html.textboxfor(x => x.pin, new { @class = "form-control input-money", @type = "password", @min = 0, @step = "any" })

but still shows alphabet keyboard.

the pin declared, in model, as:

[required(errormessage = "a verification pin required")] [minlength(4, errormessage = "a valid pin required")] [maxlength(4, errormessage = "a valid pin required")] public string pin { get; set; }

i think "type=password" overrides "input-money" (which, think causes numeric input).

is possible? want numeric keyboard show on mobile devices.

html css twitter-bootstrap

No comments:

Post a Comment