 <p>You can do it on <code>change</code> event. You can use <strong><a href="http://api.jquery.com/on/" rel="nofollow"><code>on()</code></a></strong> function for binding events.</p> <pre><code>$('yourInputSelector').on('input',function(){ if( $(this).val() == 0 ) $('yourDiv').show(); else $('yourDiv').show(); }); </code></pre>