javascript - How to get the "value" of a FilteringSelect <select> in dojo? -


I am using dijit.form.filtering; & Lt; Select & gt; Select to provide a way to choose prices. The problem is, when using the dojo, the label is given instead of the value of the S.

For example:
& lt; Select name = "test" dojoType = "dijit.
& Lt; / Select & gt;

Instead of the value for that option, "1", if that option is selected, the literal "one" is returning. "Two" And the same is true for "2".

If Dojo has been removed from this element, then the expected value has been returned.

< Div class = "post-text" itemprop = "text">

Dojo's way to do this: Digit.b Id ('your digi id'). Attri ().

The amount you want:

  dijit.byId ('yourDijitId') atr ('Value');  

To get the displayed value in the filtering selection:

  dijit.byId ('yourDijitId'). Attr ('displayValue ');  

edit : attr () was deprecated at 1.5,


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -