title: Detect input value change made by jQuery function
body: <p>So I have a function that changes the value of a hidden input field which happens in an included .jsp. </p>
  
  <p>In the parent .jsp I want to detect a change to this value but it's not working however I try it. </p>
  
  <p>See example in jsfiddle.</p>
  
  <p><a href="http://jsfiddle.net/3kxzvw5q/6/" rel="nofollow">http://jsfiddle.net/3kxzvw5q/6/</a></p>
  
  <pre><code>$("input").change(function () {
      alert("input changed, calling registerChange");
      registerChange();
  }); 
  
  function registerChange(){
      $("#fieldsChangedIndicator").val('true');
  }
  
  $("#fieldsChangedIndicator").change(function() {
      alert("called");
  });
  </code></pre>
  
  <p>The reason I don't want to perform the action immediately when the change is registered is because I want the action to be performed within the parent jsp. </p>
  
  <p>EDIT: Updated the jsFiddle to a more descriptive example</p>