I am creating a variable that is equal to the text of a <a> that has been clicked on, and then use the variable in an if / else statement but cant get it to work. I know the variable is right, and I know the function works because I can replace it with a "whatever.html" and it work. However I cant get the variable to work in its place:
$(".themenu a").click(function(){
var stuff = $(this);
if (stuff == "Home"){
$.get("main.html", function(data){
$(".content").append(data);
}, "html");
}
var stuff = $(this).text();