CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Mar 28, 2024 4:44 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Field with number and decimal
PostPosted: Tue Oct 11, 2016 6:22 am 
Offline

Joined: Fri Aug 26, 2016 7:46 pm
Posts: 10
Hi,

in an input field I would like to have the opportunity to enter only numbers with 2 decimals with a comma and not the point.
I downloaded the plugin jquery.numeric.js but would like to understand how to manage the input of the value with two decimal places.
It is also possible to always appear the decimal when I go to type in the number


I have this code:

<input type="text" name="costo" id="costo" placeholder=",00" style="text-align: right" maxlength="7">

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 57 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group