I am trying to do this with jquery globalization plugin but it fails in the browser (client script error, indexOf()
)
var newquantity = $.global.parseFloat(edititem.find('td.edititem-quantity > input'));
I used to use the jquery calculation plugin like this:
var newdiscount = edititem.find('td.edititem-discount > input').parseNumber();
and it worked but I'm changing to jquery globalization because of some i18n options it has and would like to use just one of those two plugins rather than both of them on the same site.
Why is the first one failing?