Hi Viral,
The solution I am giving to you is in jquery.
Sample Code:
Asp Code:
<asp:dropdownlist id="ddlCurrency" runat="server" xmlns:asp="#unknown">
<asp:listitem text="INR" value="0"></asp:listitem>
<asp:listitem text="US Dollar" value="1"></asp:listitem>
<asp:listitem text="Pound" value="3"></asp:listitem>
<asp:listitem text="Yen" value="4"></asp:listitem>
</asp:dropdownlist>
<asp:textbox id="txtHideMe" runat="server" xmlns:asp="#unknown"></asp:textbox>
jquery code:
<script type="text/javascript" language="javascript">
$(document).ready(function ()
{
$("select[id$='ddlCurrency']").change(function ()
{
var value = this.value;
var txtHideMe = $("input[id$='txtHideMe']");
if (value == 0)
{
txtHideMe.css({ 'display': 'none' });
}
else
{
txtHideMe.css({ 'display': 'block' });
}
});
});
</script>
Hope this helps!