EasyUI Forum
September 13, 2025, 06:50: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: disabled numberbox elements issue  (Read 9109 times)
r2ferna
Newbie
*
Posts: 21


View Profile
« on: July 29, 2014, 10:23:11 AM »

disabled numberbox elements still send their value to server when  submit the form
Code:
<input name="numCampos" id="inpNumCampos" class="easyui-numberbox" maxlength="6" style="width:40px" disabled value ="20">
<input name="numUsers" id="inpNumUsers"  maxlength="6" style="width:40px" disabled value="5">
the second one element works like supposed to be, but the first one still send its value on submitting form.
I tried different ways of disabling the element with no luck!

The form is pre-loaded with:
Code:
$('#fm').form('reset');

need I to specify something else in the numberbox plugin?

MTIA Guys!!

Logged
varonica
Full Member
***
Posts: 106


View Profile
« Reply #1 on: July 29, 2014, 06:46:27 PM »

Try: disabled="disabled"
Code:
<input name="numCampos" id="inpNumCampos" class="easyui-numberbox" maxlength="6" style="width:40px" disabled="disabled" value ="20">
Logged
r2ferna
Newbie
*
Posts: 21


View Profile
« Reply #2 on: July 30, 2014, 08:43:47 AM »

I did it, but it does not work!
In fact, I show the disabled attribute of this element
Code:
console.log($('#inpNumCampos').attr('disabled'));
just before the form submit, and it is disabled!!
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!