how to validate the textbox using jquery

JavaScript
BY LOVE
if ($('#txtName').val() == "")
Source

Also in JavaScript: