Cannot read property 'ClassList' of undefined

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.)

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

Rahul Sahu wrote:

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

 

 where I get this code?

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