EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 05, 2025, 12:35:03 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
how to let combobox default not to select one option
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to let combobox default not to select one option (Read 10844 times)
cdtuql
Newbie
Posts: 26
how to let combobox default not to select one option
«
on:
January 01, 2015, 05:18:46 AM »
how to let combobox default not to select one option?
the standard <select> elemet ,default not select one option ,but i want to use this state;
can the combobox action like the sdandard <element> ,how can i do?thanks
«
Last Edit: January 01, 2015, 06:45:53 AM by cdtuql
»
Logged
yamilbracho
Jr. Member
Posts: 64
Re: how to let combobox default not to select one option
«
Reply #1 on:
January 02, 2015, 08:44:30 AM »
You can add a "placeholder" and not selectable option like this
<option selected disabled hidden value=''>Please, select one option</option>
or
<option value="" style="display:none;"></option>
another way is
$('#cc').combobox().prop('selectedIndex', -1)
or
$('#cc').combobox()..attr("selectedIndex", -1)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...