I have an textarea which is having a placeholder. To make work in internet explorer i have include placeholder.js. The thing i am facing the problem is when i pressing the tab key
repeatedly when focus comes to text area the placeholder is not removing. How to do it ?
Here is my code..
HTML
<textarea name='body' rows='2' cols='100' onkeydown="textCounter(document.wireForm.body,document.wireForm.remLen1,240)" onkeyup="textCounter(document.wireForm.body,document.wireForm.remLen1,240)" id="thewire_large-textarea" placeholder="<?php echo $msg;?>" ></textarea>
Jquery i tried
$('#thewire_large-textarea').keyup(function() {
if (input.val() != "") {
placeholder.hide();
}
});
But still same thing. So how can we remove the placeholder on pressing the tab key
.