Good afternoon,
Clicking on a tab in my project returns the error: Uncaught TypeError: $ (...). Live is not a function.
Code:
function menu() {
$('.nav-toggle').live('click', function() {
if($(".nav-aberta").hasClass("side-fechado")) {
$('.nav-aberta').animate({
left: "0px",
}, 100, function() {
$(".nav-aberta").removeClass("side-fechado");
});
}
else {
$('.nav-aberta').animate({
left: "-250px",
}, 100, function() {
$(".nav-aberta").addClass("side-fechado");
});
}
});
}
function redo () { var sizeJanela = $ (window) .width (); // $ ('. nav-toggle'). hide ();
if (tamanhoJanela < 800) {
$('.nav-aberta').css('left', '-250px').addClass('side-fechado');
$('.nav-toggle').css('display', 'initial');
} else {
$('.nav-aberta').css('left', '0px').addClass('side-fechado');
}
menu();
}
//Menu Sidebar
$(window).resize(function() {
refazer();
});
$(window).load(function() {
refazer();
});
$(document).ready(function() {
refazer();
});
Can anyone tell me what it can be? Thanks in advance.