title: Enforcing the maxlength attribute on mobile browsers
body: <p>I have an a text input with a maximum length:</p>
  
  <pre><code>&lt;input type="text" name="name" maxlength="50"&gt;
  </code></pre>
  
  <p>This has been working fine on all the desktop browsers I've tried, but the maximum length does not seem to be enforced on mobile browsers.</p>
  
  <p>Is there any way to get mobile browsers to enforce <code>maxlength</code>? I am open to using JavaScript and/or jQuery in the solution.</p>