I am catching up an onkeyup
event on dojo filteringSelect
However seems
var userInput = dijit.byId('someId').attr("value");
Only return either "" or some value precisely equals to one of the options. So seems like the filteringSelect can only return the <Select>
part of the dijit instead of value of the <input type="text">
part, as regarding onkeyup
event.
So what is the right procedure to catch user's current input of the FilteringSelect? BTW, current application is on Dojo 1.6.
Then you should probably try the "displayedValue"
attribute:
var userInput = dijit.byId('someId').get("displayedValue");
If you ever need some information about what property you could use, I recommend reading the API Documentation (for the dijit library it is usually well documented).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.