Dynamically change style of panels through javascript
<p>I am trying to display a new panel after the user clicks an add button, for some reason this is not working (it refreshes the page as well, even though my button has a return true)  I have tried different ways, but nothing seems to work that well.</p>

<pre><code>&lt;asp:Button ID="btnAdd" runat="server" Text="Add Property" CssClass="btn" OnClientClick="addProperty(); return false;"  /&gt;


 &lt;script type="text/javascript"&gt;
    var num = 1;
    function addProperty()
    {
    num++;
    var panelName = "&lt;%=pnlProperty"  + num.toString() + ".ClientID%&gt;";
    alert(panelName);
    document.getElementById(panelName).style.display="inline";

    }
        &lt;/script&gt;
</code></pre>

<p>Any helps would be great!</p>
