hi,
in my case i want to add a new menu item(actually a div tag) to my existing menu when an event or method calling occurs. i want to append a div tag dynamically to my existing menu with all css and effects. so if you guys have a better idea for this matter plz let me know. that will be a great pleasure .

:)
thanks. regards.

udayanga...

Recommended Answers

All 2 Replies

Something like this will insert a div with class new_item before the element with class class_next

$('<div class="new_item"><\/div>').insertBefore('.class_next');

hey thanks , pritaeas for ur quick reply. i think this will help wit my matter. hope ur help again.
regards.
udayanga.

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.