title: How and where to name a jQuery script to be called from a commandButton
body: <p>I want to call this Script from a commandButton managed by a method in a bean,
  where do I put the name so it can be referenced in a method? and what to put in that method? </p>
  
  <pre><code> &lt;script&gt;
          $(document).ready(function () {
                      $("#pezz").animate({
                      left: '+=150px',
                      height: '+=20px',
                      width: '+=20px'
                });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>it has to be in a method in the backing bean, because the Jquery will be executed if some conditions are meet, else other jQuery will be executed, and attributes of the bean will be changed...also other methods inside that method will be executed.</p>