Advertisement

08.07.2008 at 11:18AM PDT, ID: 23630423 | Points: 125
[x]
Attachment Details

Dojo ComboBox question

Asked by tjgquicken in Asynchronous Javascript and XML (AJAX)

Tags:

I am trying to add a dijit.form.ComboBox widget to my web page. I have the code below. The problem is that even though I have the value="" attribute explicitly stated in the select tag, when the page renders, the contents of the textbox part of the ComboBox says "Place 1". How do I get this widget to have a blank text field instead? Thanks.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
<div id="place" class="row">
    <label for="place_select" class="left">Place: </label>
    <select dojoType="dijit.form.ComboBox" id="place_select" class="right" value="">
        <option>Place 1</option>
        <option>Place 2</option>
        <option>Place 3</option>
    </select>
</div>
[+][-]08.07.2008 at 05:17PM PDT, ID: 22186639

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2008 at 05:26PM PDT, ID: 22186670

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628