Note that there are some explanatory texts on larger screens.

plurals
  1. POMoving and Relocating HTML elements
    primarykey
    data
    text
    <p>The following code works fine.But when the drop-down list is displayed it should not override the button elements named get value and get displayed value below it..instead the buttons should movedown when the dropdown is displayed and after a particular item is selected the button shoud come to the original position.</p> <pre><code>&lt;html &gt; &lt;head&gt; &lt;link rel="stylesheet" href="dijit/themes/claro/claro.css"&gt; &lt;script&gt;dojoConfig = {parseOnLoad: true}&lt;/script&gt; &lt;script src='dojo/dojo.js'&gt;&lt;/script&gt; &lt;script&gt; require([ "dojo/store/Memory", "dijit/form/FilteringSelect", "dojo/domReady!" ], function(Memory, FilteringSelect){ var stateStore = new Memory({ data: [ {name:"Alabama", id:"AL"}, {name:"Alaska", id:"AK"}, {name:"American Samoa", id:"AS"}, {name:"Arizona", id:"AZ"}, {name:"Arkansas", id:"AR"}, {name:"Armed Forces Europe", id:"AE"}, {name:"Armed Forces Pacific", id:"AP"}, {name:"Armed Forces the Americas", id:"AA"}, {name:"California", id:"CA"}, {name:"Colorado", id:"CO"}, {name:"Connecticut", id:"CT"}, {name:"Delaware", id:"DE"} ] }); var filteringSelect = new FilteringSelect({ id: "stateSelect", name: "state", value: "CA", store: stateStore, searchAttr: "name" }, "stateSelect"); var filteringSelect = new FilteringSelect({ id: "stateSelect1", name: "state", value: "CA", store: stateStore, searchAttr: "name" }, "stateSelect1"); }); &lt;/script&gt; &lt;/head&gt; &lt;body class="claro"&gt; &lt;input id="stateSelect"&gt;&lt;br/&gt; &lt;br/&gt; &lt;br/&gt; &lt;input id="stateSelect1"&gt; &lt;input id="stateSelect"&gt; &lt;p&gt; &lt;button onclick="alert(dijit.byId('stateSelect').get('value'))"&gt;Get value&lt;/button&gt; &lt;button onclick="alert(dijit.byId('stateSelect').get('displayedValue'))"&gt;Get displayed value&lt;/button&gt; &lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload