Commit c70ffa5acc2765336dbbe15d9d35fc66e2986993
1 parent
a006f2b110
Exists in
master
and in
1 other branch
add one text field
Showing
2 changed files
with
13 additions
and
17 deletions
Show diff stats
pages/registration.html
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 | </div> |
59 | 59 | <div class="form-group"> |
60 | 60 | <label>Sector:</label> |
61 | - <select class="form-control" ng-model="data.sector"> | |
61 | + <select class="form-control" ng-model="data.sector" ng-change="GetValue()"> | |
62 | 62 | <option name="sector" selected disabled value="">Choose sector</option> |
63 | 63 | <option value="Agriculture">Agriculture</option> |
64 | 64 | <option value="Healthcare">Healthcare</option> |
... | ... | @@ -74,11 +74,9 @@ |
74 | 74 | <option value="Other">Other</option> |
75 | 75 | </select> |
76 | 76 | </div> |
77 | - <!-- <div class="form-group"> | |
78 | - <div class="toggle-panel" ng-if="ngShowhide"> | |
79 | - <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> | |
80 | - </div> | |
81 | - </div> --> | |
77 | + <div class="form-group" ng-if="ngShowhide"> | |
78 | + <input type="text" class="form-control" ng-model="data.sectorType" placeholder="Other Sector Name"> | |
79 | + </div> | |
82 | 80 | <div class="form-group"> |
83 | 81 | <label>Introduction:</label> |
84 | 82 | <textarea type="text" class="form-control" ng-model="data.intro" placeholder="Give us a brief introduction in two lines" rows="3"></textarea> | ... | ... |
script.js
... | ... | @@ -664,17 +664,15 @@ |
664 | 664 | document.getElementById('filePicker').addEventListener('change', handleFileSelect, false); |
665 | 665 | } |
666 | 666 | |
667 | -// scope.addOther = false; | |
668 | -// + $scope.hideSelectBox = true; | |
669 | -// $scope.industrykeyPress = function(e) { | |
670 | -// // $('.icon-circle-abcdefg').css('background-color', 'rgb(66, 181, 73)'); | |
671 | -// + var e = document.getElementById("dataIndustry"); | |
672 | -// + var dataIndustry = e.options[e.selectedIndex].value; | |
673 | -// + if(dataIndustry == "Other") { | |
674 | -// + $scope.addOther = true; | |
675 | -// + $scope.hideSelectBox = false; | |
676 | -// + } | |
677 | -// } | |
667 | + $scope.ngShowhide = false; | |
668 | + $scope.GetValue = function(){ | |
669 | + console.log("====$scope.value===",$scope.data.sector) | |
670 | + if($scope.data.sector == "Other"){ | |
671 | + $scope.ngShowhide = true; | |
672 | + }else{ | |
673 | + $scope.ngShowhide = false; | |
674 | + } | |
675 | + } | |
678 | 676 | |
679 | 677 | $rootScope.tokenCall = function(val) { |
680 | 678 | console.log('val-------->', val); | ... | ... |