HTML 5 Pattern attribute not working in browser

akerkki

New Member
I'm using the \[code\]pattern\[/code\] attribute to check a html text field, as:\[code\] <input type="text" style="width:285px" placeholder="Enter A Precise Address" name="address0" id="address" pattern="[ a-zA-Z0-9,#.-]+" maxlength="100" title="Standard address notation only"/>\[/code\]This attribute only seems to work if the other \[code\]<select>\[/code\] tags haven't been selected yet. Otherwise it fails to do a regex check on the textfield. However when I test the code on jsfiddle it works fine: http://jsfiddle.net/peD3t/7/.I'm testing on Firefox and Chrome the html is here on pastebin: http://pastebin.com/d2WbrrtJ.Thanks
 
Back
Top