troubleshooting Question

Onclick add/remove from array with divs

Avatar of Fracture
Fracture asked on
JavaScript
7 Comments1 Solution495 ViewsLast Modified:

Hi all experts,

I am using ASP to loop through my customer table and dynamically create some div tags, the div id is a unique Customer ID value from the ASP.

Ive got a bit of javascript code that changes the appearance of the div on the onclick method. I would like to also during this onclick function, create an array of these customer values that i can then pass the the next page.

I dont really mind how this array is created or even if a different way might be more suitable, watever gets the selected customer id values to the next page.

Was thinking maybe

Any ideas? Im a bit rusty on my javascript syntax so however much info you can give me would be greatly appreciated.

Thanks in advance.
Fracture
ASKER CERTIFIED SOLUTION
B_Dorsey

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros