title: If a value is x in an input box display a message using javascript
body: <p>i have an input box (spinner)</p>
  
  <pre><code>div id="site_content"&gt;
          &lt;div id="content"&gt;
              &lt;h:body&gt;
  
  
                  &lt;h:form&gt; 
                      &lt;p:spinner id="minutes" min="0" max="1000" value="#{printerSettings.t}"  size ="1"&gt;
                          &lt;p:ajax update="NewTime"/&gt;
                      &lt;/p:spinner&gt;
                      &lt;p:commandButton  type="submit" action="#{email.mail(printerSettings.t, printerSettings.p, printerSettings.paperSize, printerSettings.duplex, printerSettings.orienation, printerSettings.printer)}" onclick="Thankyou()" value="Print" /&gt;
  
  
                  &lt;/h:form&gt;
              &lt;/h:body&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>on submit, i wonder if it would be possible, if a user had typed in 1001 to bring up an error message, there is validation behind this, but i want to show the user this</p>
  
  <p>it can be done using either javascript or query, but i have no idea where to start, completely new to these languages, </p>
  
  <p>does any one have any examples / links on how to achieve this ?</p>