i am using Reveal modal box jquery plugin but on clicking it show error
jQuery('a[data-reveal-id]').live('click', function(e) {
i am using Reveal modal box jquery plugin but on clicking it show error
jQuery('a[data-reveal-id]').live('click', function(e) {
As of jQuery 1.7, the .live() method is deprecated.
Refer jQuery Docs
Use,
$( 'document' ).on( "click", "a[data-reveal-id]", function() {
});
looks like you are using jQuery >= 1.9, this method was removed in 1.9... you can include the migrate plugin to include the deprecated code as it is inside a third party plugin
As of jQuery 1.7, the jQuery.live() method is deprecated.
Check the jquery version in your project.
Use .on() to attach event handlers for newer version.