2
Hallo Ich bin neu auf Stackoverflow, ich habe diese GET-Methode funktioniert gut ich meine ich bekomme eine Antwort vom Server, aber ich toggleClass funktioniert nicht ich weiß nicht warum?toggleClass funktioniert nicht in Ajax
dies ist mein Code:
$("#form1").on("click", function() {
var user = $("#form1 input.user").val();
$.ajax({
url: "admin.php?user=" + user,
type: "GET",
beforeSend: function() {},
success: function(res) {
$("#results").html(res);
$("#results .name").toggleClass('.active');
}
});
});
im Noob :(, Danke für Hilfe – George