W3 Mind Logo
Home » How to remove placeholder on focus

How to remove placeholder on focus

				
					<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery('input,textarea').focus(function(){
   jQuery(this).data('placeholder',jQuery(this).attr('placeholder'))
          .attr('placeholder','');
}).blur(function(){
   jQuery(this).attr('placeholder',jQuery(this).data('placeholder'));
});
});  
</script>
				
			
About Author
Picture of W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!