showing something using jquery while typing?
i wanted to show an image, only when the person starts typing into the text field.
i.e.
$('#type').keyup(function(){
//show the images
});
html
<input type="text" name="type" id="type">
<div id="showimage"></div>
image
开发者_JAVA技巧showimage.jpg
jquery:
$('#type').keyup(function(){
$('#image').show();
});
html:
<img id="image" src="showimage.jpg" style="display: none"/>
精彩评论