tags:

views:

1123

answers:

2

Hi there. I have a simple question for all of you jQuery lads out there. I would like to se an example of a simple jQuery bbcode function.

I use a old one now and it's pure javascript and uses onClick. I would like to create a new one based on jQuery. (and understand what I did and Why I didi it).

Can you guys give me a hand? :)

A: 

I don't know if 600 lines of code qualifies as "simple", but there is a jQuery bbcode editor available here.

Adam Bellaire
+1  A: 

Unless you're looking to develop a new one as an exercise, there are quite a few markup/bbcode plugins available already -

to name a few

Russ Cam
I would like to get some practice while I develop it
Tobias
take a look at the source of a few of the existing plugins, as that will give you a good insight in to jQuery plugin patterns and practices. Also take a look at http://www.learningjquery.com/2009/03/making-a-jquery-plugin-truly-customizable#more-641
Russ Cam