EasyUI Forum
April 25, 2024, 10:49:15 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: change value Max in data-options="max : 3"; in numberbox during onchange event  (Read 3881 times)
Spike
Newbie
*
Posts: 22


View Profile
« on: December 18, 2018, 05:31:53 AM »

Hello,

How can I change dynamicly the "max number" value in data-options from a numberbox?

 <input id="pieces" name="pieces" class="easyui-numberbox" data-options="max : 3, prompt : 'Pieces.', required :false"

I want to change max pieces from 3 to 8;

I tried something like this;    $('#pieces').numberbox('textbox').max = 8;
But this is not working.

Thanx in advance for your help.

Hans
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: December 18, 2018, 06:37:40 PM »

Please call this line instead.
Code:
$('#pieces').numberbox('options').max = 8; 
Logged
Spike
Newbie
*
Posts: 22


View Profile
« Reply #2 on: December 19, 2018, 02:01:50 AM »

Thanx Jarry, It works now !

Hans
            
« Last Edit: December 19, 2018, 05:51:09 AM by Spike » 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!