title: Mask input with percent sign
body: <p>I would like to allow the user to enter 1 or two numerical digits, and display the digits followed by a percent sign.  If no digits are entered, it should be blank.  The attached almost works, but doesn't show the percent sign if only one digit is entered.  Can anyone help?  Thanks</p>
  
  <p><a href="http://jsfiddle.net/dm8Mb/">http://jsfiddle.net/dm8Mb/</a></p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; 
  &lt;head&gt; 
  &lt;meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /&gt; 
  &lt;title&gt;Mask&lt;/title&gt; 
  
  &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; 
  &lt;script src="http://cloud.github.com/downloads/digitalBush/jquery.maskedinput/jquery.maskedinput-1.3.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script&gt; 
  $(function(){$(".percent").mask("9?9%");});
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;input type="text" name="percent" class="percent" value="" /&gt;
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>