EasyUI Forum

General Category => General Discussion => Topic started by: pratikk on November 30, 2017, 11:20:16 AM



Title: Numberbox precision value from a variable
Post by: pratikk on November 30, 2017, 11:20:16 AM
Hi,
How can I set a numberbox precision value from a variable


Title: Re: Numberbox precision value from a variable
Post by: jarry on December 01, 2017, 07:10:28 PM
You can change the 'precision' at runtime.
Code:
$('#nb').numberbox('options').precision = 2;
$('#nb').numberbox('fix');


Title: Re: Numberbox precision value from a variable
Post by: pratikk on December 03, 2017, 12:41:46 AM
Thank You  :) This was what I am looking for