title: JQuery select Id question
body: <p>I have a jquery question about selecting Id.</p>
  
  <p>Basically, I call a javascript function from an onClick function which I pass in control Id and LabelId.</p>
  
  <p>If I use document.getElementById, it will work, however, if I use jQuery selector, it's NOT working.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      jQuery.noConflict();
      function ToggleProgressEnable(valueofRadio, controlId, labelId) {
  
  //Comments: the following will work.  
  //        var control = document.getElementById(controlId);
  //        var label = document.getElementById(labelId);
  
  //The following is not working.
          var control = jQuery("'#" + controlId + "'");
          var label = jQuery("'#" + labelId + "'");
          if (control != null &amp;&amp; label!=null) {
              //alert(control.Id);
              //alert(control.disabled);
              if (valueofRadio == "yes") {
                  control.disabled = false;                
                  label.disabled = false;
              }
              else if (valueofRadio == "no") {
              control.disabled = true;
              control.value = "";
              label.disabled = true;
              }
              //alert(control.disabled);
          }
      }    
  &lt;/script&gt;
  </code></pre>