How to add a class to element in Jquery and then trigger event based on that class
<p>I have some jqeury code that programatically adds a class to an element on document ready. The issue i am having is how to then listen for elements with that class being clicked.</p>

<pre><code>&lt;li&gt;&lt;a href="#" id="btnDeleteGroup" class="disabled"&gt;Delete Node&lt;/a&gt;&lt;/li&gt;

$(document).ready(function () {

  $('a.deleteGroup').click(function (e) {
    alert("deleteGroup"); 
  });

  $('#btnDeleteGroup').removeClass("disabled");
  $('#btnDeleteGroup').addClass("deleteGroup");

});
</code></pre>
