-1

i am using Reveal modal box jquery plugin but on clicking it show error

jQuery('a[data-reveal-id]').live('click', function(e) {
Nishu Tayal
  • 20,106
  • 8
  • 49
  • 101
Jeevan
  • 45
  • 1
  • 4

3 Answers3

2
As of jQuery 1.7, the .live() method is deprecated. 

Refer jQuery Docs

Use,

$( 'document' ).on( "click", "a[data-reveal-id]", function() {
}); 
Deepak Ingole
  • 14,912
  • 10
  • 47
  • 79
1

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

Arun P Johny
  • 384,651
  • 66
  • 527
  • 531
0

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.

Nishu Tayal
  • 20,106
  • 8
  • 49
  • 101