Javascript Hide Input Field based on Select change TEXT not VALUE
<p>I have a drop down list (select) populated from SQL. This is dynamic so can change at any time. I need to hide an input field based on the selected items TEXT not its Value. Here is my current code:</p>

<pre><code>&lt;select name='addEventEventName' style="width:180px" id="addEventEventName" onchange="EventChanged(this)"&gt;

                &lt;/select&gt;
                &lt;script&gt;                    
                    function EventChanged(changedEvent) 
                    {
                        if (changedEvent.value == "val1" || changedEvent.value == "val2")
                        { $("#jmtest").hide(); }
                        else
                        { $("#jmtest").show(); }
                    }
                &lt;/script&gt;
</code></pre>

<p><strong>This works perfectly now. But if "val1" and "val2" change in the future it will break.</strong></p>

<p>I would like to use Sickness (val1) and Holiday (val2) instead. What do I need to change?</p>
