Skip to content
Advertisement

Perform Function After Element Is Revealed

I’m working on a website where a div tag reveals itself after enough products are selected. What I’m trying to do is add an ID to this div tag after it’s revealed using javascript.

This is the tag that’s revealed:

JavaScript

This is the javascript I’ve created:

JavaScript

Unfortunately, this does not appear to be working.

Advertisement

Answer

Updated

Try:

JavaScript
JavaScript

CodePen

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement