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!
Sanjit Kumar SinghPosted Nov 8, 2019, 12:14 PM
neha vermaPosted Nov 4, 2019, 6:41 AM
Ramesh PalanivelPosted Nov 4, 2019, 6:04 AM
Nikunj SatasiyaPosted Nov 4, 2019, 5:40 AM