1$('form').submit(function(){
2 var form = $(this);
3 $('input').each(function(i){
4 var self = $(this);
5 try{
6 var v = self.autoNumeric('get');
7 self.autoNumeric('destroy');
8 self.val(v);
9 }catch(err){
10 console.log("Not an autonumeric field: " + self.attr("name"));
11 }
12 });
13 return true;
14});
15