title: onChange in YUI
body: <p>How we can write code for onChange function in YUI 2 and YUI3.</p>
  
  <pre><code>jQuery(':input[type=radio]').change(function(){
  
    var aType=jQuery(this).val();
    var numT= aType==1 ? "3" : "6" ;
    var aWidth=aType==1 ? "330px" : "660px" ;
  
  });
  </code></pre>