Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#12161 closed defect (duplicate)

Select: option without value

Reported by: vtsuper Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.5
Keywords: option empty Cc:
Blocked By: Blocking:

Description

Dear all,

I found a strange case in dijit.form.select.

new dijit.form.Select({ name:"case1",maxHeight:300},'case1'); 
new dijit.form.Select({ name:"case2",maxHeight:300},'case2'); 
new dijit.form.Select({ name:"case3",maxHeight:300},'case2'); 

<select id="case1"> 
<option>Please choose</option> 
<option>A</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option>B</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
</select> 

<select id="case2"> 
<option>Please choose</option> 
<option value="">A</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="">B</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
</select> 

<select id="case3"> 
<option>Please choose</option> 
<option value="A">A</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
<option value="A">B</option> 
<option value="1">1</option> 
<option value="2">2</option> 
<option value="3">3</option> 
</select> 

accroding to the above example, in case1, case2 option A,B,C are disappear only case3 seems work probably. but actually it doesn't, because <option>Please choose</option> always show on the first time but after user select other option, you can't see<option>Please choose</option> anymore

And after you select a option. The value become BOLD in style. and then you click reset button, the value of selectbox has been reset by the last option are still in BOLD size.

Regards, Pong

Change History (3)

comment:1 Changed 9 years ago by bill

Owner: set to Douglas Hays
Summary: dijit.form.select option without valueSelect: option without value

See also #12213

comment:2 Changed 9 years ago by Douglas Hays

Resolution: duplicate
Status: newclosed

Dup of #9973. For now, you must add a value.

comment:3 Changed 9 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.