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 7542341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:08:26+00:00 2026-05-30T08:08:26+00:00

I know that the question is so simple but I can’t figured it out.

  • 0

I know that the question is so simple but I can’t figured it out. I have the following html ;

<div class="prev_comments">                     
    <div class="commentRow">
        <div class="box1"></div>
        <h2>
            <span> ..some text..  </span> ..some text again..
        </h2>                     
    </div>                  
</div>
<div class="new_comment">
    <input class="writecomment" type="text" placeholder="Write a comment">
</div>

I have a .writecomment event in jquery. So, in my jquery, $(this) stands for writecomment field.

I need to append a new <div class="commentRow"> ... </div>. In my jquery, I have the following code ;

$(this).closest('.new_comment').prev('.prev_comments').append($comment_element).hide().fadeIn('slow');

It doesn’t work at all. $comment_element is just the necessary html to append for <div class="commentRow"> ... </div>

Any ideas why it doesn’t work ? Any solutions ?

Based on comments, here is the link of jsFiddle;

http://jsfiddle.net/aacanakin/fv3hN/

  • 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-05-30T08:08:28+00:00Added an answer on May 30, 2026 at 8:08 am

    Here is a quick fiddle.

    Is this what you are trying to accomplish? I bound your add comment code to the blur of the text box for now.

    EDIT:

    This fiddle is the one I updated, but created by the poster.

    http://jsfiddle.net/PNJrc/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A simple question I'm sure, but I can't figure it out. I have some
I just have one simple question about XSS attack. I know that you can
I know this is a pretty simple question but I can't figure out where
I have a simple question. I know that I can prevent a form to
I have question that seems simple to you all but can't really get it.
I know that this is a simple question for PHP guys but I don't
I have a simple question. I know that shell scripts are slow/ineffective when it
I have a quick and hopefully simple question that I hope someone can help
This is probably a simple question that I am just missing but I have
Ok I know that this is trivial question but: How can i remove lines

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.