EasyUI Forum
March 28, 2024, 10:49:28 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: combobox clear on click  (Read 8563 times)
lloyd
Newbie
*
Posts: 29


View Profile Email
« on: December 08, 2015, 10:08:03 AM »

Hi,

How can I clear the combobox when it is selected (click/tab)?
IE. The current selected text is cleared before a new selection is made.


Thanks,

Lloyd
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: December 08, 2015, 03:11:39 PM »

Please describe your question in more detail.
Logged
lloyd
Newbie
*
Posts: 29


View Profile Email
« Reply #2 on: December 09, 2015, 01:03:18 AM »

I have a editable combobox, that has a default text value "---Select---".
What I need is, when the combobox is selected (by mouse click or keyboard tab) the default text value is cleared before I entered text or select from the drop down.
Logged
lloyd
Newbie
*
Posts: 29


View Profile Email
« Reply #3 on: December 09, 2015, 04:07:23 AM »

I have found a solution http://jsfiddle.net/zspwbohy/
I just need to modify it the clear the text. Smiley
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!