Click here to Skip to main content
15,742,619 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<label for="user_CompID" class="col-form-label">Company Name</label>
<select class="form-control" name="user_CompID">
<option value="">Select Company Name</option>
<option v-for="item in sel_comp" :value="item.cmp_id">{{item.cmp_Name}}</option></select>

var vm = new Vue({
          el: '#maint_user_ctrl',
          data: {
              sel_comp: []
          created: function () {
              doLoadParam: function () {
                  var self = this;

                  ajaxJsonProcess("get", myPath + "/company-dropdown", "", function (inDat) {
                      self.sel_comp = inDat;
                  }, dftError);


What I have tried:

my dropdown is not getting any value from my database, it keeps return {{item.cmp_Name}}, Is there anything i have missed?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900