0
I would like to do the following, the user type 1, in the input would have the value ,01, then he types 2, would appear ,12, then he type 3, it would appear 1,23, so on. I have the input as follows:
<input type="text" class="form-control" id ="produto_preco_unitario" name="produto_preco_unitario"
value="" placeholder="Preço por Unidade" required/>
Guilherme Nascimento, in my library jquery.maskMoney.js I had already changed to work with currency format (decimal comma and thousand point separator. Any problem using my website library?
– user60252
Just a hint, this plugin allows you to configure the decimal without having to change the source. Just adjust the Settings. Tampering with the font to change something that has configuration is not the best of the uses of the plugin (although it works by changing the font, it is something else to keep the parallel version, and in this case, unnecessarily). Here is the suggestion to update the answer to value.
– Bacco
Since there is no problem why change? No, I do not know what is CDN, when interested I will try to know something about.
– user60252
CDN is Content Delivery Network, a way to distribute files across multiple servers and take advantage of the same address, in order to speed up access, and at the same time reuse the client’s cache. Using the official, you have a much better chance of the feature not going off the air, in addition to the higher performance (but in this case, would not support changes on your part, has the 2 sides of the coin, plus the issue of end-user privacy)
– Bacco
I hope you really know what it is open-source and what it is to support a project open-source, so I recommend to standardize according to the "versioning" of lib in the repository so that if there is any BUG that they will fix in CDN will be updated, and there really is no need to add an "internal" configuration and the libria itself provides this according to the link I sent you.
– Guilherme Nascimento
About CDN, here are some concepts What is CDN and how to enable it in my Javascript files? - Differences between Cache and CDN usage - Creating a CDN - content delivery network
– Bacco
I get it, so do it there in my reply so that when you click on run it will look the way I had done it.
– user60252
To sum it up
$("#produto_preco_unitario").maskMoney({thousands: ".", decimal: ","});
, see how simple it is, it did not spend more than one line and does not need to keep modifying the original file that is maintained by open-source by many people who gave the trouble to create a configuration system and thus follow the versioning in the correct way ;), I hope you understand how constructive criticism.– Guilherme Nascimento
Yes I understand, do it there in my reply and I will be immensely grateful!
– user60252
Let me tell you something. I stayed up all night to find out why I didn’t open many websites on my machine. In the network machines all worked, including cell phones with wifi. Even Adsense didn’t open on my sites here on my machine, Google sites none. I couldn’t solve it at all, and I tested several solutions, including the one indicated by the OS site. I had to reinstall the OS. Moral of the story: It’s best not to depend on anything from others, it goes that .....
– user60252
I agree, but technically your site would be third party there, don’t you agree? If an Adblock blocks a Cdn, such as maxcdn, then 50% of internet sites would stop working.
– Guilherme Nascimento