How to make pattern allow numbers only?

Trying to make the input accept digits only from 0 to 9

pattern="[0-9]+" Not Working

pattern="[A-Za-z0-9]+" Not Working

Hello there,

We recommend familiarising yourself with how to ask a question on this forum. Specifically, you are more likely to get useful help, if you provide a helpful title and description: