I have a small basic html code with JavaScript . All I want is when I type 3,it should show me an image as specified and for 9 accordingly. This is the demo. Visit http://jsbin.
try capturing "keypress" event on input box, http://api.jquery.com/keypress/ OR try capturing "change" event on input box, http://api.jquery.com/change/