EasyUI Forum
October 19, 2025, 10:34:25 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: problem show placeholder on combobox, when using disable-enable function  (Read 12813 times)
sky_proj
Newbie
*
Posts: 24


View Profile
« on: June 20, 2015, 09:36:52 PM »

im using eayui v1.4.2

example 1: placeholder is show - OK
=======================
<html>
  <input id="kdcust" name="kdcust" class="easyui-combobox" data-options="prompt:'entry nobukti' ">
</html>
<script>
  $(function(){   
   $('#kdcust').combobox('textbox').prop('placeholder', 'entry nobukti');
   $('#kdcust').combobox('disable');
   $('#kdcust').combobox('enable');
  });
</script>


example 2 : placeholder not show Sad
============================================
<html>
  <input id="kdcust" name="kdcust" class="easyui-combobox">
</html>

<script>
  $(function(){   
   $('#kdcust').combobox('textbox').prop('placeholder', 'entry nobukti');
   $('#kdcust').combobox('disable');
   $('#kdcust').combobox('enable');
  });
</script>


is there a bug on easyui 1.4.2 or something?
thanks
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 on: June 21, 2015, 02:51:43 AM »

You don't need to change its 'placeholder' attribute. Please use the 'prompt' property instead.
Code:
<input id="kdcust" name="kdcust" class="easyui-combobox" prompt="entry nobukti">
Logged
sky_proj
Newbie
*
Posts: 24


View Profile
« Reply #2 on: June 22, 2015, 06:17:06 AM »

You don't need to change its 'placeholder' attribute. Please use the 'prompt' property instead.
Code:
<input id="kdcust" name="kdcust" class="easyui-combobox" prompt="entry nobukti">


Ok thanks
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!