Changing value of custom select option - Javascript
<p>I need assistance changing the value of a custom-select box.  I cannot use JQuery because I already have a change() function hooked up to it.</p>

<p>How can I change the value of the select box in Javascript?</p>

<p>This is my custom select function:</p>

<pre><code>$.fn.customSelect = function() {
if ( $(this).length ) {
    $(this).find('select').attr('selectedIndex',-1).change(function() {
        var optionText = $(this).find('option:selected').text();
        $(this).siblings('label').text(optionText)
    });
}
</code></pre>

<p>};</p>

<p>I have tried:</p>

<pre><code>var field = document.getElementById('test5');
field.value = '2';
field.focus();
</code></pre>

<p>This will select the option, but it will not show up as the default option (hopefully you guys can understand this haha).</p>

<p>Any possible solutions?</p>
