Using depends with the jQuery Validation plugin

前端 未结 8 506
[愿得一人]
[愿得一人] 2021-01-12 11:52

I\'ve got a form with a bunch of textboxes that are disabled by default, then enabled by use of a checkbox next to each one.

When enabled, the values in these textbo

8条回答
  •  生来不讨喜
    2021-01-12 12:48

    I havent tried the validator plugin, but the fact that the message shows for a splitsecond sounds to me like a double bind, how do you call your binders? If you bind in a function try unbinding just before you start, like so:

    $('#ItemList :checkbox').unbind("click");
    ...Rest of code here...
    

提交回复
热议问题