Checkbox widget and event binding

Checkbox widget and event binding

Hey,
      I have a page that I do a livequery on to style all of the checkboxes using the checkbox widget from http://wiki.jqueryui.com/Checkbox. A couple of the checkboxes require the change/click event to be handled. When using this widget neither of those events are being fired off.

I've tried the following:   

  1. $("#chkbox1").live("click", function (){ // I've tried .change, .click, .bind, .live, and .livequery
  2.       alert("event fired");
  3. });
  4. $('input[type=checkbox]').checkbox();
If I don't call the .checkbox() then the event runs just fine. The checkbox widget does appear to be interacting with the hidden checkbox(verified with a page submit).





    • Topic Participants

    • billy