Hello guys, I want to select multiple values from dropdown list using comma seperated.i m attaching code .plz help me with this.
I am getting output as
,java
,net
That' my function
- $scope.getKeySkills = function(value) {
- if(value==null){
- console.log(value);
- $scope.form.data.keySkills = value;
- }
- else{
- $scope.form.data.keySkills = ","+value;
- }}
- class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12 mb-2">
- ="validationCustom02">Key skills
- color="red">*
- ng-model="form.keySkill"
- ng-change="getKeySkills(form.keySkill)"
- ng-options="s.name as s.name for s in form.preload.keySkillsList"
- required style="cursor: pointer" id="basic">
- >--Key skills--
class="valid-feedback">Looks good! - "hidden" ng-model="form.id" value="form.data.id">
- class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12 mb-2">
- ="validationCustom01">key skills value
- color="red">* "text" class="form-control"
- id="validationCustom01" placeholder="values" value=""
- ng-change="getKeySkills(form.keySkill)" ng-model="form.keySkill">
class="valid-feedback">Looks good!

Nikunj SatasiyaRank #302 · 8.3K reputationPosted Nov 4, 2019, 12:40 AM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Nov 4, 2019, 1:04 AM EST
neha verma9 reputationPosted Nov 4, 2019, 1:41 AM EST
Sanjit Kumar SinghRank #1,366 · 1.2K reputationPosted Nov 8, 2019, 7:14 AM EST