-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
  • 18,079
  • 8
  • 44
  • 90
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
  • 12,511
  • 8
  • 40
  • 75
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
  • 365,836
  • 60
  • 503
  • 504
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
  • 18,079
  • 8
  • 44
  • 90