I have a success function in my AJAX which returns the response text from a python script which can be either \"SUCCESS\" or \"EMPTY\". Now I want to place an if-loop insid
check if you don't have any additional spaces before/after "SUCCESS"
And also try to change
if(data === "SUCCESS"){
to
if(data == "SUCCESS"){