Commits

Alexander Shabunevich  committed 38b39ba

Change click event to delegate for work with AJAX-loads.

  • Participants
  • Parent commits f397592

Comments (0)

Files changed (1)

File checkbox-select.php

     <script type="text/javascript">
       $(function() {
         var lastCheckedChk;
-        $(':checkbox').click(function(event) {
+        $('body').delegate('input[type="checkbox"]', 'click', function(event) {
           if (!lastCheckedChk) {
             lastCheckedChk = this;
             return;