How to set a var to true or false using .val()
<p>I have a textbox, I need to check if the textbox is empty and set a variable accordingly to true or false.</p>

<p>my code at the moment print the value of the textbox.</p>

<pre><code>var isDateTimEndEmpty = dateTimeEnd.val() == null ? true : false;
</code></pre>

<p>what am I doing wrong here?</p>
