10
Views
3
Comments
Cannot read property 'ClassList' of undefined
Question

Hello Team,

I continuously facing Cannot read property 'ClassList' of undefined this error in browser.

In my Master's and details screen. (In mobile app)

(Note-In details screen, I have 5 dropdowns and one save button after save data will save in master screen . and for every dropdown, I call service.)

Rank: #90

Hi Pratiksha,

Are you using any any JS code for it.

if you are using js code by class name then you should use like

var el = document.getElementsByClassName('classButton1');

for (var i=0;i<el.length; i++) {

    el[i].click();

}


More helpful if you provide some image of code or oml.

Regards
Rahul sahu

Hi Pratiksha,


If you are not using JavaScript then the problem may be on reading the data from dropdown as you are using services to get data in dropdown. can you plz post snaps of Save button logic.


Regards,

Sanjay