how to toggle div inside update panel using javascript. asp.net
<p>Hi I have a dropdownlist and a div inside update panel. I want to toggle div using javascript on dropdownlist selection change that is inside update panel. but it is not working.</p>

<pre><code>function DistrictChange() {
        debugger;
        var ddldistrict = document.getElementById('&lt;%=DDLDistrict.ClientID %&gt;');
        var dvOther = document.getElementById('&lt;%=divOthrDistrict.ClientID %&gt;');
        if (ddldistrict.options[ddldistrict.selectedIndex].text == 'Other') {
            dvOther.style.display == 'block';

        }
        else {
            dvOther.style.display == 'none';
        }

    }    
</code></pre>
