javascript - formatCurrency not working after AJAX call -
I am using the Format Currency jQuery Plugin to add a $
to some numbers I also have a table that uses an AJAX call to sort the table. When the page is initially loaded, then $
is appended correctly, but when I sort the table, the function is not called and my number is $
Is lost, is there anything like $ (window) .load
for AJAX calls?
I should mention that table sorting is also done through a plugin, so I do not want to edit it in the plugin files, in my main.js
file I would like to add, just get the plugin updated.
Even so far I have not been working with AJAX calls:
(function ($) {$ (window) Load (function () {$ ('currency. -blue-apply'). FormatContinency ({roundToDecimalPlace: 0});});}) (JQuery);
AJAX calls should be defined in the table of the callback function. If so, this is where you want to format your format () Call $ (window). Aload () does not come after AJAX call.
Which plugin are you using to sort the table? If you tell us in the right direction then we can solve you (haha, see what I did?)
Comments
Post a Comment