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

  • Home
  • SEARCH
  • 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 9231831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:10:03+00:00 2026-06-18T06:10:03+00:00

I am trying to modify a textbox on my webpage so that it has

  • 0

I am trying to modify a textbox on my webpage so that it has some text written in it that disapears once the user clicks on the textbox to enter the information. I have tried using the placeholder attribute, with no luck. I then tried adding this: (https://github.com/jamesallardice/Placeholders.js) to make placeholder work, again it did not work (textbox remains blank).

I am a beginner at programming, using Internet Explorer 8.

Here is the code:

<td colspan="3">    

    <textarea style="background: #F6E3CE; overflow:auto;" rows="3" cols="70" name="" id="" placeholder="Please enter your name here" onchange="commentsChanged(this,<?php echo $variable;?>);"><?php echo str_replace('\r\n', "\n", rtrim($variable2[0][TitleTitle]));?></textarea>

</td>

Please let me know if any information is missing.

Thank you!

  • 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-06-18T06:10:04+00:00Added an answer on June 18, 2026 at 6:10 am

    With jQuery you can do this: (I not test, but this is not far)

    <script type="text/javascript">
        $("input#text").focus(function(){
            if( $(this).val() == "default message" )
            {
                $(this).val("");
            }
        }).blur(function(){
            if( $(this).val() == "" )
            {
                $(this).val("default message");
            }
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to modify a TextBox that belongs to Form2 from within a
I am trying to modify the script below to click a button that looks
This has been bothering me for quite some time. I'm simply trying to change
i am trying to write some code behind a webpage to send an email
I'm trying to modify a code from MyKong adding some lines which change the
I'm trying to modify a serial program that reads from a database, and writes
I'm trying to fill a textbox with an amount that can be divided by
I'm trying to modify all links on a page so they perform some additional
I am trying to modify a cookie, specifically the pass_hash cookie that the ipb
I'm trying to let an <input type=text> (henceforth referred to as textbox) fill a

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.