0

I have a text input field and a div that contains an image. I would like the image to disappear once a person starts typing in the input field.

<div id="writehere">
<input type="text" id="myinput">
</div>

<div id="container"> 
<div id="introimg"><img src=.../intro.png"/></div>
</div>
circariem
  • 11
  • 1
  • 1
  • 3

1 Answers1

0

try this code.

$(document).ready(function () {
  $("#myinput").keypress(function () {
            $("#container").hide();
        });
});

But how do you want to show the pic again?

Armen
  • 1,083
  • 2
  • 10
  • 18