title: JQuery Alternate of YAHOO.util.Dom.getElementsByClassName
body: <p>Can any one tell me the alternate of YAHOO.util.Dom.getElementsByClassName in JQuery?</p>
  
  <p>It can be done somewhat like this :</p>
  
  <pre><code>function(elemName, tag, root) {
   $("form[name='" + root.name + "'] " + tag + "." + elemName);
  }
  </code></pre>
  
  <p>But what if a function is also passed in it as another parameter like that in YAHOO.util.Dom.getElementsByClassName? </p>