please answer

Recommended Answers

All 2 Replies

Do you mean change the contents of the div? Or add or remove classes from thr div?

DOM manipulation is expensive from a performance standpoint, so you want to change as little as possible.

If you are using jQuery, you can do something like: $('div#id').html('<strong>New HTML!</strong>');

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.