JSFiddle - React, Tailwind, and code Playground
HTML
<select name="entry.parent" size="1" style="width: 360px;" id="SPCatChooserSl" class="required">
<option value="">Selecteer categorie</option>
<option selected="selected" value="55">- Option 1</option>
<option value="59">- Option 2</option>
</select>
<div id="option1">
<p>Hier comes option 1</p>
</div>
<div id="option2">
<p>Here comes option 2</p>
</div>
JavaScript
jQuery(function() {
jQuery('#option1').hide();
jQuery('#option2').hide();
});
function updateOption() {
jQuery('#option1').toggle(this.value == '55');
jQuery('#option2').toggle(this.value == '59');
}
jQuery(document).ready(function() {
jQuery("#SPCatChooserSl").each(updateOption);
jQuery("#SPCatChooserSl").change(updateOption);
});