{"action":"opened","issue":{"url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/182","labels_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/182/comments","events_url":"https://api.github.com/repos/BobKnothe/autoNumeric/issues/182/events","html_url":"https://github.com/BobKnothe/autoNumeric/issues/182","id":120857944,"number":182,"title":"jquery error when value prepopulated","user":{"login":"jlaustill","id":10804615,"avatar_url":"https://avatars.githubusercontent.com/u/10804615?v=3","gravatar_id":"","url":"https://api.github.com/users/jlaustill","html_url":"https://github.com/jlaustill","followers_url":"https://api.github.com/users/jlaustill/followers","following_url":"https://api.github.com/users/jlaustill/following{/other_user}","gists_url":"https://api.github.com/users/jlaustill/gists{/gist_id}","starred_url":"https://api.github.com/users/jlaustill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlaustill/subscriptions","organizations_url":"https://api.github.com/users/jlaustill/orgs","repos_url":"https://api.github.com/users/jlaustill/repos","events_url":"https://api.github.com/users/jlaustill/events{/privacy}","received_events_url":"https://api.github.com/users/jlaustill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T20:15:41Z","updated_at":"2015-12-07T20:15:41Z","closed_at":null,"body":"I'm getting a weird error.  jquery throws this\r\n\r\nUncaught Error: The value ($29.999.99) being 'set' is not numeric and has caused a error to be thrown\r\n\r\nWhen I load a decimal value into my input as 29999.99.  The weird thing is that it properly updates the form, like so\r\n\r\n <input class=\"\" data-val=\"true\" data-val-required=\"*Name is required.\" id=\"Name\" name=\"Name\" type=\"text\" value=\"$29,999.99\" />\r\n\r\nAnd displays on the screen properly, but because of this error it blocks everything else on my page.  I'm really confused trying to track this down, any suggestions?\r\n\r\nFurther info that may help, my app is an MVC 5 c# app, the field I'm passing is in a text property converted from a decimal backing field, as such\r\n\r\n private decimal _money;\r\n\r\n        [Required(ErrorMessage = \"Money is required.\")]\r\n        public string Money\r\n        {\r\n            get { return _money.ToString(CultureInfo.InvariantCulture); }\r\n            set { _money = decimal.Parse(value, NumberStyles.Currency); }\r\n        }\r\n\r\nThis is my simple javascript init call(this is just a test, I'm playing around, I'd really like to use this plugin if I can make it work for me :) )\r\n\r\n $(document).ready(function() {\r\n\r\n            //$('#Description').summernote();\r\n\r\n            $('#Name').autoNumeric('init', { aSign: '$', aPad: false, wEmpty: 'sign', lZero: 'deny' });\r\n\r\n            $('#Description').summernote(\r\n            {\r\n                onImageUpload: function(files) {\r\n                    sendFile(files);\r\n                }\r\n            });\r\n\r\n        });\r\n\r\n\r\nIf I'm leaving anything important out just ask, I'm kind of stumped."}}