title: Assign 0 if the value is null or empty in Jquery
body: <p>I want to use a ternary operator for the below jQuery statement like if employee_salary is <code>empty</code> or <code>null</code>, I want to assign as 0 (zero). Otherwise, just assign the actual value.</p>
  <pre><code>jQuery('#employee_form #employee_salary').val(parseInt(selected_table_data['employee_salary']))
  </code></pre>