$(document).ready(function() {
var page = 1;
    $(".btnReadMore").click(function(){
        if(page==1){
            $('#aboutUsText').text('textone');
            var page=0;
        }else{
            $('#aboutUsText').text('text two');
        }
    }); 
});
I am fairly new to javascript, I am trying to toggle an elements text when you press a button, What am i doing wrong? Thanks :3
 
     
     
    