EasyUI Forum
October 10, 2024, 09:49:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Numberbox precision value from a variable  (Read 5960 times)
pratikk
Newbie
*
Posts: 49


View Profile Email
« on: November 30, 2017, 11:20:16 AM »

Hi,
How can I set a numberbox precision value from a variable
Logged
jarry
Administrator
Hero Member
*****
Posts: 2274


View Profile Email
« Reply #1 on: December 01, 2017, 07:10:28 PM »

You can change the 'precision' at runtime.
Code:
$('#nb').numberbox('options').precision = 2;
$('#nb').numberbox('fix');
Logged
pratikk
Newbie
*
Posts: 49


View Profile Email
« Reply #2 on: December 03, 2017, 12:41:46 AM »

Thank You  Smiley This was what I am looking for
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!