Set a default value to jquery variable
<p>I want to set a default value to a variable.</p>

<p>When the body loads it runs a function which needs the variable to get the data.<br>The form will do the same onchange but the form elements will be hidden and added only if the user wants to see the filter options</p>

<p>My current code is</p>

<pre><code>var grade = document.getElementById('grade').value;
</code></pre>

<p>If the id grade isnt available on the first load of the i want the grade to default to 0</p>
