I have a little mystery.
When you have a div { display: none; }
rule in your css, and a textarea
on the page, it is impossible to copy and paste in the textarea
in a Chrome browser.
What's going on?
.html
I have a little mystery.
When you have a div { display: none; }
rule in your css, and a textarea
on the page, it is impossible to copy and paste in the textarea
in a Chrome browser.
What's going on?
http://pastehtml./view/ax3tuefz3.html
Share Improve this question edited Jul 7, 2011 at 1:29 Acorn asked Jun 14, 2011 at 11:57 AcornAcorn 50.6k30 gold badges141 silver badges179 bronze badges3 Answers
Reset to default 2I tried and yes the paste seems to be broken in your example.
There were some bugs reported on chrome buglist:
http://code.google./p/chromium/issues/detail?id=60057
http://code.google./p/chromium/issues/detail?id=61784
But they are long closed.
This is a bug in WebKit.
I've filed a bug report here: https://code.google./p/chromium/issues/detail?id=86025
Your problem isdisplay:none;
is applying to all your div
s.
I gave your button a class
:
<div id="login" class="login">
And made sure the display:none;
only applied to it
div.login {
display: none;
}
Then I hid your form off the top
$('#view_form').hide();
Works now: http://jsbin./umugi5/3/