title: How to get value of selected in ddSlick dropdown
body: <p>I use some ddslick drop down menus in a form and I want to get the selected values when submit that form.</p>
  
  <p>Already try to create a hidden input near that menus:</p>
  
  <pre><code>&lt;input type="hidden" name="hiddeninput" id="hiddeninput"  /&gt;
  </code></pre>
  
  <p>then I assign the selected value to that input name:</p>
  
  <pre><code>    $(document).ready(function() {
  
                  //Dropdown Básico
                  for (var i=0;i&lt;10;i++){
                  $('#dropdownBasico'+i).ddslick({
                      data: ddData,
                      width: 150,
                      imagePosition: "left",
                      selectText: "some texts",
                      onSelected: function(data){
                       if(data.selectedIndex &gt; 0) {
                                $('#hiddeninput').val=selectedData.value;
                              alert(selectedData.value);
                          }  
                      }
                  }); 
  }
  </code></pre>
  
  <p>But the value I get is always empty. Please advice the solution, and note that I have several menus here (thats why I use for loop to change the name accordingly). I already research some similar questions like: <a href="https://stackoverflow.com/questions/13995178/get-value-of-selected-option-in-ddslick-dropdown">Get value of selected &lt;option&gt; in ddSlick dropdown</a> and <a href="https://stackoverflow.com/questions/11453578/ddslick-select-options-wonst-post-value-of-selected-option-jquery-plugin">ddslick select options won&#39;st post value of selected option - jquery plugin</a> and tried them but get no working solution ! Thanks a lot!</p>