Set the value of drop down list - with known options - with particular custom attribute value
<p>I have this select element</p>

<pre><code>&lt;select class="zip_plus_master" data-stype='proof'&gt;&lt;/select&gt;
</code></pre>

<p>The  values are loaded from a database, where the ID's of these values is the value of the attribute "data-zipid" for all options. An example option is like this:</p>

<pre><code>&lt;option data-zipid='34'&gt;95628-1092&lt;/option&gt;
</code></pre>

<p>How can I have an option with a certain data-zipid attribute value selected?</p>

<p>After parsing, the value of "data-zipid" for all options is currentJSONset.value</p>

<p>I've tried this:</p>

<pre><code>$('.zip_plus_master[data-stype=proof] option:selected').attr('data-zipid', currentJSONset.value);
</code></pre>
