DanielDrabik / Contact-Form-7-Range-Slider-Extender

Extends usability of stock range slider available in Contact Form 7 plugin.
GNU General Public License v3.0
9 stars 2 forks source link

Probably a request #1

Closed MarioPaladinWeb closed 5 years ago

MarioPaladinWeb commented 6 years ago

Thanks for the plugin.

I hope it is possible to place a dollar sign and a comma whenever it reaches a thousand or a million value? Is this possible sir? Thanks!

DanielDrabik commented 6 years ago

To attach dollar sign simply add this to css file

.contactform7-output:before { content: "$"; }

Second request is probably not possible. I've tried with js, but I couldn't override the output's inner html. jQuery('.contactform7-output').bind("DOMSubtreeModified",function(){ var number = Number(jQuery(this).html()); jQuery(this).html(number.toLocaleString('en-US', {style: 'currency', currency: "USD"})); })

My browser just crashed from number of errors I got.

DanielDrabik commented 6 years ago

About adding comma to a number -> here is the sollution

KevPark1877 commented 5 years ago

Whereabouts do you place the cf7-range-slider-extender.php file in your directory?