title: jquery is not defined when i m using
body: <p>I am getting error jquery is not defined.. please help me..         </p>
  
  <pre><code> jQuery(function(){
              jQuery('#submitid').click(function(){
                  if(jQuery('input[id="EnrollmentServiceAddress1"]').val() != ''){
                      var add2 = jQuery('input[id="EnrollmentServiceAddress2"]').val();
                      if(add2.indexOf('#', 0) &amp;&amp; add2 != ''){
                          jQuery('input[id="EnrollmentServiceAddress2"]').val('#'+add2);
                      }
                  }
                  QadServer.current.submit("#EnrollmentServiceInformationForm");
              });
  
              jQuery('input[name="residence_type"]').click(function() {
                  if(jQuery('input[name="residence_type"]:checked').val() == 'home') {
                      //            jQuery('#add_type').html('Home Number');
                      jQuery('#home_apt').slideUp('slow');
                  } else if(jQuery('input[name="residence_type"]:checked').val() == 'apartment') {
                      jQuery('#add_type').html('Apartment Number');
                      jQuery('#home_apt').slideDown('slow');
                  }
              });
  
              jQuery('.qad_suggestion').live('click',function() {
                  qad_test();
              });
  
              jQuery('div[id="change_add"] &gt; span').click(function() {
                  jQuery('input[id="EnrollmentServiceAddress1"]').val('');
                  jQuery('input[name="residence_type"]:checked').attr('checked', false);
                  jQuery('#home_apt').hide();
                  jQuery('#change_add').slideUp('slow', function() {
                      jQuery('#validate_add_block').slideDown('slow');
                  });
              });
  
      &lt;?php if($this-&gt;Session-&gt;check('Enrollment.social_security_number')) { ?&gt;
                  //        jQuery('#validate_add_block').hide(); //Old code
                  //        jQuery('#change_add').show();
                  jQuery('#validate_add_block').show(); //New code
                  jQuery('#change_add').hide();
      &lt;?php } ?&gt;
                   init();
               });
  </code></pre>