Hello,
I have a form in which ,
I have DIV1.
Selecting option from DIV1
another DIV2 gets open and form is filled.

But I want after filling DIV2,
its values should get refreshed to default ones.

How can I do this in JS?

Using javascript or jQuery you simply need to copy the values when the event occurs such a the button click that finishes the form.

Without any code example, its hard to provide you with better guidance regarding your code.

Be a part of the DaniWeb community

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