I am trying to submit a form, consistent solely of a dropdown menu in order to get to another page. I cannot figure out how to select the dropdown however. The below sample is a representation of what I am dealing with.
<select name="p_term" size="1" id="term_input_id">
<option value="">None
</option><option value="201605">Summer Session: May - Aug 2016
</option><option value="201601">Second Term: Jan - Apr 2016
</select>
I have tried
document.getElementById('term_input_id').value='201601';
but PhantomJS will not run the rest of my code with this line in there.