I have this code :
<script>
$('#searchInput').keyup(function() {
alert('Handler for .keyup() called.');
});
</script>
and this input :
<input id='searchInput' type='text' placeholder='Search other alumni users' />
but when I press a key, the alert doesn’t come up…
I’ve included the jQuery script already.
Change your code to
to ensure the DOM element exists when you build the jQuery set.