jConfirm access value from injected HTML element
===

I have this code which makes a fancy jQuery alert box with several inputs:

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

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?

