pola html5 hanya untuk angka
<input type="text" name="country_code" pattern="[0-9]+" title="please enter number only" required="required">
Grumpy Gecko
<input type="text" name="country_code" pattern="[0-9]+" title="please enter number only" required="required">
<input type="number" step="1" />