I'm currently facing an issue with a textarea that has a placeholder and the Tab key functionality in Internet Explorer. I've included placeholder.js to make it work, but when I repeatedly press the tab key
and focus on the textarea, the placeholder does not disappear. How can I solve this problem?
Below 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>
I have tried using jQuery:
$('#thewire_large-textarea').keyup(function() {
if (input.val() != "") {
placeholder.hide();
}
});
However, the issue persists. Can someone please guide me on how to remove the placeholder when the tab key
is pressed?