livequery plugin change to live()
We have recently seen that we are dragging behind in jquery land, and we currently run 1.3.2 with livequery 1.0.2 with a load of events like this to bind the validation plugin to the form:
- $(function() {
- $("#LoginForm").livequery(function() {
- var thisForm = $(this);
- thisForm.validate({
- ...
- });
- });
- });
This allows us to load in forms with ajax and have the appropriate validation bind to the form that comes in.
The problem however is that livequery does not work with jquery 1.5.x or 1.4.x and we need a graceful way to upgrade this.
I have looked at live() and delegate() and both are close, but do not do exactly what we need.
Can anyone shed any light on how we might tackle this?