MyBB Community Forums

Full Version: HTML Tag Replace Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've got a new problem and need some help.

What I'm trying is to replace a div group to appear as li replacing tags at runtime on document load so that I can use elements in a dropdown. I've tried two methods, both working in jsfiddle, but when I implement in MyBB none of the methods working.

Method 01:
http://jsfiddle.net/effone/NtL9P/

Method 02:
http://jsfiddle.net/effone/85SMZ/

Can anyone please point me out what exactly I'm doing wrong?