Search code examples
c#javascriptculturecultureinfo

c# culture info conversion


I need a way in c# or javascript to convert any input user has entered into invariant culture. So if user enters 2,5 or 2.5 I wan't to convert it to decimal as 2.5. Is there any way of doing this except of string.replace(",",".") ? :D Thanks


Solution

  • try to use Masked Input Plugin for you input field