I have a form input that I am using for a list in dashcode. I'm trying to specify a specific item from my list so I can use the code below, but I don't know how.
function fadeout(event)
{
// Values you provide
var itemToFadeOut = document.getElementById("text2"); // replace with name of element to fade
// Fading code
var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
new AppleAnimator(8500, 13, 1.0, 0.0, fadeHandler).start();}
When I run this it says the itemToFadeOut is null which I understand because the element doesn't have an Id, it is just a class. How do I a specific element from my dynamic list an id?