0

I need to check my variable mutexSelect as follows:

window.setInterval( function(){
   if (mutexSelect === true) {
      mutexSelect = false;
      makeIntoSelect(newSelectedItem);
   }
},300);

But it's not like how would like to have. Sometimes it leads to further conflicts and not calling makeIntoSelect function. Are there any other options to watch a variable by JS or jQuery? Thanks in Advance!

MustafaSalih
  • 49
  • 1
  • 5

0 Answers0