So I have a question. It’s probably simple, but I’ve tried so many things and can’t seem to get it to work. If you can just quickly rewrite this in the correct syntax, that would be sooo awesome.
I need my javascript object to include a variable that’s a counter that adds.
Here is my code that works.
$(div_1).droppable("option", "disabled", false);
Here is what i need to work.
var counter = 1;
$('div_' + counter).droppable("option", "disabled", false);
counter++;
Hopefully i explained this well enough…
Thank you so much!!
Interesting, this is how I would do it:
This assumes
div_1is a variable, as your question is written. By getting the element out of thewindowarray, I avoid the nasty nastyeval.