Check empty input with jquery

At the risk of repeating myself, “It doesn’t work” isn’t particularly descriptive. In what way is it not working?