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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:08:45+00:00 2026-05-27T20:08:45+00:00

I have a textarea and a button. button on click event i pick text

  • 0

I have a textarea and a button. button on click event i pick text from textarea, wrap it inside dDIV and append to body/previous div…it works fine. But when i enter “?” i replace it with something like “jQuery1501637366954848789_1324305473579″…i cant find why this is happening….Is there anyone who have faced the same ??

This is how i get textarea value

var comment = $("#comment").val();

This is how i wrap it

$('<div class="outer"><div class="inner" id="avatar"><img src="'+avatar+'" width="35" height="35"></div><div class="inner" id="comment-holder"><div id="text"><a href="mailto:'+email+'">'+name+'</a> '+comment+'</div><div class="ago">a second ago</div></div><div class="delete" style="margin-left : 2px;margin-right : 2px;">&nbsp;</div><br style="clear:both" /></div>')             
.insertBefore($('#post-comment'))
.insertAfter(".reply-holder:last")
.fadeIn("slow");

=========================
Got the solution myself….
made changes to ajax request, I dont know what is the relation but it worked

data: "action=save&comment="+temp_comment+"&email="+email+"&name="+name,

with

data: "action=save&comment="+encodeURIComponent(temp_comment)+"&email="+email+"&name="+name,

i am not even using temp_comment variable, Its funny. anyways problem solved 🙂 thanks for ur time..i gonna study this later, there should be some logic behind

  • 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-27T20:08:46+00:00Added an answer on May 27, 2026 at 8:08 pm

    This is how jQuery generates JSONP requests.

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

Sidebar

Related Questions

I have textarea in the UI which i display text inside it from db
I have a textarea where people can write comments and click a button to
here's an easy one (that I'm struggling with)! I have a textarea, a button,
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
I have a textarea with many lines of input, and a JavaScript event fires
SOLVED http://jsfiddle.net/ArtofLife/u9d9d/ I have multiple TEXTAREA and BUTTON out side.. For inserting string in
I have a form with a text area. Some people double-click on the submit
I have below code in html <div id=divTest> Hello <input type=text id=txtID/> <input type=text
I have a textarea element inside of a jquery modal dialog that has an
Hi i have click event that will pop up a info window & marker

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.