jquery inserts in div
<p>i am having problem with jquery inserts i am using bbedit to inserts images links bold italic etc in my message box and jquery inserts the required html in the corresponding form but its not doing correctly. in below code </p>

<p>in the below code .bbedit-toolbar and .bbedit-smileybar is getting inserted by jquery automatically but in my code its not getting inserted .here is the link for the complete bbcode example <a href="http://www.w3theme.com/jquery-bbedit/" rel="nofollow">http://www.w3theme.com/jquery-bbedit/</a></p>

<p>any help will be highly appreciated.</p>

<pre><code>$("#form_message").bind("change keyup", function() {
    $("#form_submit").removeAttr("disabled");
    $("#form_submit").addClass("att_submit_active");
});
$("#form_message").keyup(function() {
    if ($("#attachment").val() == "status") {
        var max = parseInt($("#form_message").attr("maxlength"));
        if ($(this).val().length &gt; max) {
            $(this).val($(this).val().substr(0, $(this).attr("maxlength")));
        }
        $("#charsRemaining").html("You have &lt;strong&gt;" + (max - $(this).val().length) + "&lt;/strong&gt; characters remaining");
    }
})
</code></pre>
