how would I handle a situation where upon onclick - if the ajax response returns nothing, then throw an alert();. I\'ve tried so many ways to tackle this but t
alert();