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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:10:26+00:00 2026-05-14T00:10:26+00:00

In a htmlpage using jQuery or JavaScript how can the following be achieved? User

  • 0

In a htmlpage using jQuery or JavaScript how can the following be achieved?

User types in a question in a textarea and press on enter button, then the same question should be displayed dynamically in the page below the textarea and the user can enter as many questions.

And when the user is done the page is submitted through a submit button.

Can you give a small hint of how this can be done?

  • 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-14T00:10:26+00:00Added an answer on May 14, 2026 at 12:10 am

    Try this to get started :

    <!DOCTYPE html>
    <html>
    <head>
      <title>Example</title>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
      <script type="text/javascript">
        $(document).ready(function() {
          $('#textareabutton').click(function(){
            var q  = $('#textarea').val(),
                $p = $('<p>').html( q );
            $('#questions').append( $p );
          });
          $('#submit').click(function(){
            var tab;
            tab = $('#questions p').serializeArray();
            // now do something with $.ajax to submit the questions
            $.post("myphp.php",tab,function(resp){
              // what do I do with the server's reply ???
            });
          });
        });
      </script>
      <style type="text/css">
      </style>
    </head>
    <body>
      <textarea id='textarea'></textarea>
      <button type='button' id='textareabutton'>Add question</button>
      <div id='questions'></div>
      <button type='button' id='submit'>Submit questions</button>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have the following JavaScript/jQuery script that gets an external html page using
Using jquery (javascript) need to display facebook user name in html page using facebook
I have a html page using a jQuery UI Button with some jQuery script
Lately I've been writing some JS code using jQuery and JavaScript as it is
I am using jQuery dialog in a simple, typical use case: In the Javascript:
i'm trying to validate an html page using jquery, but nothing happens. it's a
I want to show page loading spinner in my html page content using jquery
I am using jQuery to read data in a HTML page. On that page,
In html page some tags are dynamically created using jquery and contents are loaded
I have saved an html page using the following line of code : NSURL

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.