Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Liquid Web Managed Dedicated Server: RAID 1 SSD with 16GB of RAM minimum! 24/7 On-Site Heroic Support! Industry-Leading SLA!

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Liquid Web Cloud VPS Hosting

8,361 questions

11,615 answers

573 users

How to hide and show placeholder on textarea when click and leave in HTML5 & Javascript

1 Answer

0 votes
<script>
function onfocusPost() 
{
   document.getElementById("new-post").placeholder = "";
}            
function onblurPost() 
{
   document.getElementById("new-post").placeholder = "Add New Post";
}
</script>
<textarea aria-label="New Post" id="new-post" title="New Post" placeholder="Add New Post" 
role="textbox" aria-autocomplete="list" autocomplete="off" aria-expanded="false" style="display: block;" 
cols="80" style="width: 400px; height: 150px;" 
onfocus="onfocusPost();" onblur="onblurPost();"></textarea>



answered May 3, 2014 by avibootz
edited May 3, 2014 by avibootz
...