Hi
I am trying to get data from lookup using the control class and its working fine when I do it in console but once the form is published and I try to open it up in Crome it will throw an error saying "Cannot read property 'textContent' of undefined".
Again if I use "NWF$(".CSclass option:selected")[0].textContent" after inspecting the element it works fine.
Any ideas why it happens with certain controls.
code :
NWF.FormFiller.Events.RegisterAfterReady(function(){
var data =NWF$(".CSclass option:selected")[0].textContent;
alert(data);
});
It will now show the alert because it couldn't get the data in data variable.