x-editable price format issue -


I have a problem with the x-editable plugin, how to display prices in the correct format in X-editable? I would like to get prices in price format such as XX, xxx.xx?

My code

var edit VehiclePrice = function (L, option) {

  var option = $ .extend (true, {url: Utils .siteUrl () + 'Dashboard / Cell_Heical / Inline_Hehl_Edit /', Ajax Options: {DataType: 'Jason'}, Mode: 'Inline',}, Options || {parameter: Functions (Params) {params.veh_id = $ (This) .data ('wyd'); return param;}, success: function (feedback, newcomers) {if (response.status == 0) Return response. MGS; console.log (Utils.numberFormat (newValue, 2 )); $ (Response.to_update) .text (newValue);} Valid: function (ma N) {If ($ trim (value) == '') {return 'this field is required';}}}); $ (L) .editable (option); }  

This console.log will display the correct format value. But when I update it, the number is displayed in the normal format .. Please help me

If we want to display any changes after editing, then we must

  display: Function (value, feedback) {var K = Utils.numberFormat (value, 2); $ (This) .text (s); },  

The price will be displayed in the format.


Comments