amiryxe/easy-number-separator

Add Decimal Separator Functionality

Closed this issue · 5 comments

Is it possible to add Decimal Separator Functionality (ex 12,544.12)

Exactly what I see. Also is there a way to make the input box returns it original value without the comma. Is send the data with the comma to the database and that's not cool

Exactly what I see. Also is there a way to make the input box returns it original value without the comma. Is send the data with the comma to the database and that's not cool

yo can use str_replace for this case
example in laravel :
$tablename -> table_coloumn = str_replace(',' , '', $data['input']);

It now supported. Thanks to @mlwn-00 and other friends :)

Exactly what I see. Also is there a way to make the input box returns it original value without the comma. Is send the data with the comma to the database and that's not cool

Thanks for your report @iamprincesly ,
I updated the project and you can now hold the original value to an input like this:

easyNumberSeparator({
  selector: '.number-separator',
  separator: ',',
  resultInput: '#result_input', // original input holder which can be a hidden input
})

oh thats cool 👍