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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:56:39+00:00 2026-06-15T13:56:39+00:00

i was wondering about some weird behaviour in Internet Explorer 10. On my page,

  • 0

i was wondering about some weird behaviour in Internet Explorer 10.
On my page, I am adding a textarea with jquery, including a placeholder attribute. Something like this:

$('body').append($('<textarea placeholder="Placeholder..."></textarea>'));

The placeholder attribute works perfectly fine in IE10 usually… except in this case. I tested it with elements being already on the page in this fiddle:

http://jsfiddle.net/Aqnt5/1/

As you can see, one textarea (the one added dynamically) treats the placeholder attribute like an actual value – the most annoying behaviour I could imagine…

Does anyone know of this effect and maybe also a workaround? Thanks in advance!

EDIT

I also just realised that it works as expected, after you remove the value by hand. You can remove it via jQuery.val('') as well to make it work. I am really confused by this behaviour… But this should be a suitable ‘workaround’.
See this fiddle: http://jsfiddle.net/Aqnt5/5/

  • 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-15T13:56:40+00:00Added an answer on June 15, 2026 at 1:56 pm

    Unfortunately I do not have IE10 to test this on, but this works everywhere else;

    $('body').append('<textarea></textarea>');
    $('textarea').attr('placeholder', 'placeholder');
    

    And just double-check that your DOCTYPE is correct for HTML5

    Here is a one-liner (broken into several lines here to make it more visible) that you can also do –

    $('body')
        .append('<textarea></textarea>')
        .find('textarea')
        .attr('placeholder', 'placeholder');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've always been wondering about some weird aspect of Java generics and the use
Just wondering about some practice about this; I have made a simple visual C#
I was wondering about some best practices for data binding in web forms. For
I've been wondering about this problem for some time - doubleclicking a winforms TabControl's
I'm wondering about the .childNodes property, I have the code below, and for some
There are some different opinions about simple inner classes, so I was wondering if
Just trying to canvas some opinions here. I was wondering how people go about
Just wondering about this code below... when I turn off my internet connection and
I'm wondering about some details of how for ... in works in Python. My
A quick question I've been wondering about for some time; Does the CPU assign

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.