I'm trying to use a pattern on an html5 input text.
This textbox should allow all the characters and number, both lowercase and uppercase and a maxLenght of 16, but NOT the special characters.
i tried this pattern, but it doesn't work (if i miss some character fell free to pointing it out):
[^!\£$%&/()=?^*§#@_:,;.-+-/|]*
HTML
<form>
<INPUT TYPE="TEXT"
pattern="[^!\£$%&/()=?^*§#@_:,;.-+-/|]*" maxLenght='16' value="">
<input type="submit">
</form>
<span class="result"></span>
JavaScript
$("form").on("submit", function (evt){
$(".result").html('ok');
evt.preventDefault;
})
Example here: http://codepen.io/anon/pen/avNKMm?editors=101
any help would be really appreciated.
Thanks a lot.
