Topic: chips.select function does not work

mikean pro asked 5 years ago


I need the chips.select event to add an image but the event is not triggered as it seems. chip.add and chip.delete functions work properly. Thanks for your help in advance!

Edyta Dabrowska free answered 5 years ago


Hello, could you send me an example or some of your code snippet in order to reproduce your error? Regards,

Rahul Soni pro commented 4 years ago

hi Chip select event isn't working for me also.. <div class="chips chips-initial"></div> var chip = { tag: 'chip content', image: '<a href="https://mdbootstrap.com/img/Photos/Avatars/img(28)" rel="nofollow">https://mdbootstrap.com/img/Photos/Avatars/img(28)</a>.jpg', //optional id: 1, //optional some: 'sdf', sdf: 2 }; $('.chips-initial').materialChip({data: [chip]}); $('.chips').on('chip.add', function(e, chip){ console.log(chip); console.log(e); }); $('.chips').on('chip.delete', function(e, chip){ console.log(chip); console.log(e); }); $('.chips').on('chip.select', function(e, chip){ console.log(chip); console.log(e); });


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags