The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Adding bbcodes in javascript

View previous topic View next topic Go down

Solved Adding bbcodes in javascript

Post by Proxy*64* on January 7th 2013, 4:50 pm

Can I add bbcodes in a Javascript/jQuery?
This is an example but it doesn't work.
Code:
var x="Hello";
var y=7;
$(x).replaceWith('[b]'+y+'[/b]');


Last edited by Proxy*64* on January 20th 2013, 12:02 pm; edited 1 time in total

Proxy*64*
Forumember

Male Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery

http://fataola.forumgreek.com

Back to top Go down

Solved Re: Adding bbcodes in javascript

Post by Proxy*64* on January 7th 2013, 9:06 pm

Hi Rideem!
I had seen this,but I don't want to create a new bbcode,but I want to include an already one into a javascript!

Proxy*64*
Forumember

Male Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery

http://fataola.forumgreek.com

Back to top Go down

Solved Re: Adding bbcodes in javascript

Post by Proxy*64* on January 7th 2013, 9:31 pm

mmm.that's nice,but it doesn't fits my code...
I don't want to use html. Very Happy

Proxy*64*
Forumember

Male Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery

http://fataola.forumgreek.com

Back to top Go down

Solved Re: Adding bbcodes in javascript

Post by Proxy*64* on January 20th 2013, 12:00 pm

anyway,i don't need this anymore.thank you!

Proxy*64*
Forumember

Male Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery

http://fataola.forumgreek.com

Back to top Go down

Solved Re: Adding bbcodes in javascript

Post by Base on January 20th 2013, 12:45 pm

Garbaged

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum