Created
February 24, 2013 12:04
-
-
Save afshinm/5023576 to your computer and use it in GitHub Desktop.
using PersianJs in ASP.NET web form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="scripts/persian.js"></script> | |
<asp:TextBox ID="TextBox1" runat="server" Text = "" ForeColor = "Gray"></asp:TextBox> | |
<div id="output"></div> | |
<script type="text/javascript"> | |
$("#<%=TextBox1.ClientID%>").keypress(function () { | |
if ($("#<%=TextBox1.ClientID%>").val() != "") { | |
console.log("key pressed"); | |
$("#output").html(persianJs($("#<%=TextBox1.ClientID%>").val()).englishNumber()); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment