jquery - Plugin - comma decimals -


I have a table with prices in this format: "1.234,56", (Thousands separators have a duration, and Decimal separator is a comma). This format does not work because the Table Player plug-in sees it as a string instead of a number, whenever there is a different letter (only numbers, +/- and "." Is allowed for decimals).

How can I change the comma with time before time sorting and sorting?

OK, I think I solved it, the currency of my table, so I used to call it 'currency' parser But you can basically do this with any other currency parser at the end looks like this:

  ts.addParser ({id: "currency", is: function {S} {return / ^ [xus $} .... (s);}, format: function (s) {s = s.replace ('.', ''); Return $ .tablesorter.formatFloat (s .replace (New RegExp (/ [^ 0-9.] / G), ""));}, type: "numerical"});  

(By the way, how do you turn Synthax Highlight on StaxHourFlow?)


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -