Click here to Skip to main content
15,895,746 members

Comments by Faisal Khatri (Top 2 by date)

Faisal Khatri 2-Dec-10 15:21pm View    
To call the DollarFormat function i m doing this:
<asp:TextBox ID="txt" onchange="javascript:DollarFormat('txt');" runat="server" Width="250px" ></asp:TextBox>
Faisal Khatri 2-Dec-10 15:14pm View    
Its not working. I tried it.

function DollarFormat(str)
{
$('#<%= str.ClientID %>').val;

}

It gives me this error "Compiler Error Message: CS0103: The name 'str' does not exist in the current context".

Any help will be appreciated. Thanks