jConfirm access value from injected HTML element
<p>I have this code which makes a fancy jQuery alert box with several inputs:</p>

<pre><code>//jConfirm( message, [title, callback] )
    $('#buttonNew').click(function(){
             jConfirm('&lt;form&gt;&lt;input id="postTitle" type="text"/&gt;&lt;br/&gt;&lt;textarea id="postBody"&gt;&lt;/textarea&gt;&lt;/form&gt;', 'New Post',
             function(r){if(r==true){
                    alert($('#postTitle').val()); //Expecting the input value but getting "undefined"
                                  }
                         });
                         })
</code></pre>

<p>When I try to use the value entered into the inputs (such as with an alert() for testing as shown above) I'm getting "undefined". How do I access those values of the injected HTML inputs from within the callback function?</p>
