Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:35:02+00:00 2026-06-18T11:35:02+00:00

<textarea id=bbcode_enabled></textarea> <textarea id=bbcode_enabled></textarea> <textarea id=bbcode_enabled></textarea> $(document).ready(function() { $(#bbcode_enabled).each(function () { $(this).bbcode({ tag_bold:true, tag_italic:true,

  • 0
<textarea id="bbcode_enabled"></textarea>
<textarea id="bbcode_enabled"></textarea>
<textarea id="bbcode_enabled"></textarea>

$(document).ready(function()
{
    $("#bbcode_enabled").each(function () { 
        $(this).bbcode({
            tag_bold:true,
            tag_italic:true,
            tag_underline:true,
            tag_link:true,
            tag_item:true,
            tag_skill:true,
            tag_own3d:true,
            tag_youtube:true,
            tag_twitch:true,
            tag_color:false,
            tag_image:true,
            button_image:true
        });
    });
});

It only applies the BBCode class to the first textarea, ignoring others.
What’s wrong?

Ps. This is the BBCode class I’m using.
http://pastebin.com/FqXasEmD

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:35:04+00:00Added an answer on June 18, 2026 at 11:35 am

    Because id‘s must be uniqiue, chage it to class:

    <textarea class="bbcode_enabled"></textarea>
    <textarea class="bbcode_enabled"></textarea>
    <textarea class="bbcode_enabled"></textarea>
    
    $(".bbcode_enabled").each(function () { 
        ...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$('textarea').focus(function() { var img = $(this).css('background-image'); $(this).css('background-image', 'none'); }); $('textarea').blur(function() { $(this).css('background-image', img); });
// Clearing Textarea $('textarea').focus(function() { var $this = $(this); $.data(this, 'img', $this.css('background-image')); $this.css('background-image', 'none');
$('textarea.contact').click(function(){ $(this).animate({backgroundPosition: +=350 -=150}, 500).delay(500); $(this).animate({backgroundPosition: +=350 -=150}, 500); }); I'm using a background
im using this rte in bbcode format. http://markitup.jaysalvat.com/home/ once the textarea is submitted i'm
textarea onclick=this.focus(); this.select(); rows=1 cols=100 readonly=readonly style=background: #ffffcc; font-family: Monospace;> a href=http://127.0.0.1:8000/ajax/share?url=...... onclick=window.open(this.url, 'blabla',
this is my textarea prepared for ckeditor to launch on: <textarea name=Message id=RFMessage lol
I have a textarea with this content: <textarea id=text> Hello! Who am I? This
This is a textarea. The user can write anything. <textarea id=text>First sentence. Second sentence?
I have written a plugin that looks like this so far: (function($) { var
TextArea looks like: <textarea id=MessageContent name=MessageContent></textarea> JQuery looks like: $(#insert).live(click, function () { var

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.