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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:26:47+00:00 2026-05-24T13:26:47+00:00

Hello This is a complex question and I hope someone will be so nice

  • 0

Hello This is a complex question and I hope someone will be so nice to help me with this request.

I have some fields:

<label for ="message">Message: </label><input type="text" id="message" name="message"><br>
<label for ="name">Status Name: </label><input type="text" id="name" name="name"><br>
<label for ="link">Link: </label><input type="text" id="link" name="link"><br>
<label for ="description">Description: </label><input type="text" id="description" name="description"><br>
<label for ="picture">Picture: </label><input type="text" id="picture" name="picture"><br>

Whatever is written in one or more of the fields above should be rewritten in the Elements below.

<span id="message_preview"></span>
<span id="name_preview"><a href=""></a></span>
<span id="link_preview"></span>
<span id="description_preview"></span>
<span id="image_preview"><img src=""></span>

So whatever is written in the field message should automatically appear in the Element message_preview

Whatever is written in the name field should be rewritten in the element name_preview

Whatever is written in the field link should be automatically rewritten in both the element link_preview AND inside the href that is inside the element above name_preview

Whatever is written in the description field should be rewritten in the element
description_preview

Whatever is written in the picture field should be rewritten inside the img src of the element image_preview

I know it is a complex one, but I am not a jQuery expert…and I am in need of the complete function =((

Can you help me?

P.S. All of the be above should happen Everytime the user changes the text in those fields.

  • 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-24T13:26:48+00:00Added an answer on May 24, 2026 at 1:26 pm

    Here’s a little example I created in JSFiddle with comments, it’s working for everything but images, you should try to figure that out yourself.

    // bind jquery to listen to every keyup event that happens in an input element
    $("input").keyup(function() {
        // get the id of the element in which the event took place
        var id=$(this).attr('id');
        // the appropriate value of the field
        var value = $(this).val();
        // select the appropriate span (which is id_+preview in your case
        // and insert the value in the span
        $("#"+id+"_preview").html($(this).val());
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello this is may first question and I have found so far the following
I have a JSON data like this: { hello: { first:firstvalue, second:secondvalue }, hello2:
I have a string containing something like this Hello bla bla bla bla ok,
If I have 2 files each with this: Hello World (x 1000) Does that
I have a textbox where a user puts a string like this: hello world!
Hello i have this form filling javascript: function onLine(code,nn) { document.writeform.bericht.value+=code; document.writeform.bericht.focus(); document.writeform.nickname.value+=nn; write1();
Hello I have this list that i am working on. When i move the
Hello I asked this question to superuser but I did not get a good
Hello I have been tasked with creating a fairly complex web application in php,
If I have a hello.php file like this: Hello, <?php echo $foo; ?>! I

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.