I make an AJAX call to my server to read a file and get the value back as response. If the request was successful then i replace the innerHTML from my <p> element with id output with the response value. Now I try to fire an alert every time if the value has changed. I tried to add an event to my <p> element so I can detect if the variable has changed and fire my function:
<p id="output"></p>
<script>
    $("#output").change(function() {
        alert("HELLO WORLD!");
    });
</script>
There is no alert() showing up.
 
     
    