Getting this error:
Uncaught TypeError: Object [object Object] has no method 'live'
From this JavaScript and jQuery code:
init: function(options) {
var form = this;
if (!form.data('jqv') || form.data('jqv') == null ) {
options = methods._saveOptions(form, options);
// bind all formError elements to close on click
$(".formError").live("click", function() {
//Getting error here:
//Uncaught TypeError: Object [object Object] has no method 'live'
});
}
return this;
};
Why is method live
missing?
.live()
has been deprecated for a while; perhaps it's really gone now :) – Containerize$(document).on('click', '.formError', function(){ ... });
– Whetstone.live
is gone as of 1.9, I think: jsfiddle.net/6mBsB – Inappreciable