Niceforms and jQuery events

Posted by Michael Edwards on Stack Overflow See other posts from Stack Overflow or by Michael Edwards
Published on 2010-03-15T17:35:40Z Indexed on 2010/03/15 17:39 UTC
Read the original article Hit count: 708

Filed under:
|
|

Our design agency has supplied HTML that uses NiceForms. The problem I am having is that this mucks up jQuery event binding.

I have the following code:

keys = $("#key input");
$(keys).each(function(){
  $(this).change(function() {
    console.log("hi");
  }
}

If I disable NiceForms this code works but with Niceforms enabled it doesn't. How do I get around this problem?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery