<div dir="ltr"><div><div><div><div><div>Hi !<br><br></div>I need to do updateOrigin without actually moving the slider, as in , I am identifying what all origins are green (noaction) presently and then setting cookieblock for them that is turning them yellow.Since no event is externally  caused, I need to pick up the right element which is done like <b>var $elm= $('label[for="' + <a href="http://event.currentTarget.id">event.currentTarget.id</a> + '"]'); </b>in updateOrigin. <br></div>What would be a good way to retrieve this element in this case? Given that I have list of the all the allowed origins that need to be turned yellow. <br><br></div>I tried code like the one below, so as to get the right element from which corresponding switchContainer and clicker can be retrieved, but it does not seems  to work.<br><br><i> var elms = document.getElementsByClassName("clicker tooltip noaction");<br> console.log(elms[0].getAttribute("data-origin"))<br> var on= elms[0].getAttribute("data-origin").replace(".","-")<br> var $elm = $('label[for=" noaction-' + on + '"]');</i><br><br></div><div><br></div>Any suggestions?<br><br></div><div>Thanks<br></div>Aditi<br></div>