title: Get selected item id in devexpress combobox using javascript
body: <p>I have a devexpress combobx in my view:</p>
  
  <pre><code>Html.DevExpress().ComboBox(s =&gt;
                                         {
                                             s.Name = idPola;
                                             s.Style.Add("float", "left");
                                             foreach (SelectListItem item in list)
                                             {
                                                 s.Properties.Items.Add(new ListEditItem()
                                                 {
                                                     Text = item.Text,
                                                     Value = item.Value,
                                                     Selected = item.Value == selectedValue
                                                 });
                                             }
                                             s.SelectedIndex = selectedIndex;
                                             s.Properties.IncrementalFilteringMode = IncrementalFilteringMode.StartsWith;
                                             s.ClientVisible = ControlVisible;
                                             if (Model.Alternative)
                                             {
                                                 s.Properties.ClientSideEvents.SelectedIndexChanged =  "function(s, e){ffff(s)}";
                                             }
                                             else
                                             {
                                                 s.Properties.ClientSideEvents.SelectedIndexChanged = "function(s, e){HideTextBox(s,e)}";
                                             }
                                             s.Properties.EnableClientSideAPI = true;
                                         }).Render();
  </code></pre>
  
  <p>How to get id of selected item using javascript in the HideTextBox function?</p>