My goal here is to ensure that the value in an input
element is a non-zero digit (0<x<=9
). Here's the HTML tag I'm using:
<input type="number" class="cell">
I've experimented with various JavaScript solutions, but so far none have been successful. Just for reference, I am utilizing jQuery 3.2.1.