html - HTML5 Pattern Regex failing -


i'm trying use following pattern prevent users submitting non-alphanumeric characters, reason pattern rejects alphanumeric entries.

<input    id="service_desk_id"    type="text"    class="form-control"    id="stuckreportsfixsd"    name="stuckreportsfixsd"    placeholder="sd id"   data-toggle="popover"    data-trigger="focus"    data-placement="right"    data-trigger="focus"    data-content="if have one, enter service desk id service desk ticket."    pattern="[a-za-z0-9]"    title="no non-alphanumeric characters." /> 

i don't understand why reject following entry: "sdds2020" does, saying doesn't match pattern. fails print title, leaving explanation blank. causing , how can fix it?


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -