title: How to add custom attribute dynamically to Select Option and how to fetch it using javascript or dojo
body: <p>I know, I know there must be some threads covering this topic. But I used the search and didn't get the answer which fits my needs. So here we go:</p>
  
  <p>I am adding custom attribute to Select Option but i am not able fetch the value that particular attribute,</p>
  
  <pre><code>Option1 = domConstruct.create("option", {});
  Option1.innerHTML = "2015";
  Option1.value = "2015";
  domAttr.set(Option1, "Type", "Input");
  
  domAttr.get(evt.currentTarget[this.selectedIndex], "Type"); 
  or
  domAttr.get(evt.currentTarget.this.selectedIndex, "Type");
  or
  evt.currentTarget.selectedIndex.getAttribute('Type');
  or
  evt.currentTarget[this.selectedIndex].getAttribute('Type');
  </code></pre>