title: AngularJS Getting the value of a selected dropdown option in a variable
body: <p>I have dropdown selection menu &amp; want to send the dropdown selected value in request params of api. My code is...</p>
  
  <pre><code>&lt;select class="form-control" id = "SelectionInput_reason"&gt;
     &lt;option name="careerType" value="type_1"&gt;Career&lt;/option&gt;
     &lt;option name="examType" value="type_2"&gt;Exams&lt;/option&gt;
  &lt;/select&gt;
  
  getValue = function() {
      var selectedValue = this.value;
      var selectedText = this.options[this.selectedIndex].getAttribute('name');
      alert(selectedValue); 
      alert(selectedText); 
  } 
  document.getElementById('SelectionInput_reason').addEventListener('change', getValue );
  </code></pre>
  
  <p>Please give answer in angularJS if possible...</p>
  
  <p>also how can I get the text input of tinymceeditor in a variable ?</p>
  
  <pre><code>$scope.tinymceModel = 'Initial content';
          $scope.getContent = function() {
            console.log('Editor content:', $scope.tinymceModel);
          };
          $scope.setContent = function() {
            $scope.tinymceModel = 'Time: ' + (new Date());
          };
          $scope.tinymceOptions = {
            selector: 'textarea',
            //plugins: 'link image code',
            toolbar: ' bold italic | undo redo | alignleft aligncenter alignright | code'
          };
  </code></pre>
  
  <p>HTML is..</p>
  
  <pre><code>&lt;div class="form-group"&gt;
       &lt;textarea ui-tinymce="tinymceOptions" id="jander" ng-model="tinymceModel" placeholder="Ask your question" class="form-control"&gt;&lt;/textarea&gt;
   &lt;/div&gt;
  </code></pre>