title: How to get index of selected value in Dropdown list javascript
body: <p>How to get index of selected value in Dropdown list in an event function. Here's my code.</p>
  
  <pre><code>function(data, event) {
      console.log(data);
      var k = self.selectedValue;
  }
  </code></pre>
  
  <p>data has list of all values in DropDown list. But how to get index of it.</p>