ejs-chiplist selected value pass in OnChage Event

I am using syncfusion for displaying the list of subjects.

<ejs-chiplist id="chip-SubjectTags" selection="Single" click="FilterSubject" cssClass="e-primary">
@foreach (var mySubject in (List<FilterSubjectInfo>)ViewBag.FilterTags)
<e-chip text="@mySubject.Name" value="@mySubject.SubjectTagID" enabled="true"></e-chip>

When selecting the subject let’s say MATHS OR SCIENCE it calls the function FilterSubject(e) and fetch the data.

Now I have one dropdown list in which I have a list of Teacher’s names.

<select class="form-control" id="selectTeacher" onchange="getTeacherVideo(this)">
function getTeacherVideo(selectObject) {
var value = selectObject.value;
//var abcValue = document.getElementById('chip-SubjectTags').selectObject;

Here in getTeacherVideo() function I want to use the chip-SubjectTags, selected chip value.

How can I access chip-SubjectTags chip value in Javascript.

Source: JavaSript – Stack Overflow

August 27, 2021
Category : News
Tags: ej2-syncfusion | javascript | syncfusion

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.