title: How to pass jquery array/object to function that expects a MS Ajax object
body: <p>I've a big project where there still exist some MS ajax functions used all over the project. I could rewrite them using jquery but for now that would take to much time.</p>
  
  <p>However we now using jquery for every new functionality.</p>
  
  <p>Take a look at this:</p>
  
  <pre><code>    $.each($("a[xonclick]"), function (index, value) {
              EnableButton(value);
          });
      function EnableButton(btn) {
          ...
          var xonclick = btn.getAttribute("xonclick");
          ...
      }
  </code></pre>
  
  <p>Off course i get the javascript error: </p>
  
  <pre><code>getAttribute is not a function
  </code></pre>
  
  <p>I know i could use <code>btn.attr("xonclick");</code> but that's not an option as i mentioned before.</p>
  
  <p>Is there some jquery function that gives me a MS ajax object for a jquery object? I could then use that object and pass it to the enableButton function.</p>
  
  <p>UPDATE: JSFiddle: <a href="http://jsfiddle.net/wsYCJ/1/" rel="nofollow">http://jsfiddle.net/wsYCJ/1/</a></p>
  
  <p>I hope i explained it well and someone of you knows a solution for this.</p>
  
  <p>Thanks!</p>