Hi,

I have a page that when loaded it populate a div data from database :

<div>
data1 --------- remove link
data2 --------- remove link
data3 --------- remove link
</div>

I want to have an acordion that has data with checkboxes :

checkbox ------------ data4
checkbox ------------ data5
checkbox ------------ data6

when I check a checkbox its data will be added in the above div


Can you plz help me on how to do this .

Thanks, your help is appreciated.

Recommended Answers

All 2 Replies

Without seeing your code it is not possible to give an exact answer.

In general, however, the same approaches used to 'populate' the <div> in the first place [ .appendChild() or .innerHTML += or whatever] could be used 'onclick' in the accordion to add to the <div>.

Hi,
my code is a big jsp file,

How about when selecting a checkbox, the accordion get refreshed and the div above it get refreshed too.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.