0
Good afternoon,
by clicking on a tab in my project the error is returned: 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? I thank you in advance.
Jquery is added right?
– Aline
You must have updated the jQuery version that this code uses.
– bfavaretto