Live click event
<p>Can someone point out to me how to make the ask class into a live click event.</p>

<pre><code>$('.ask').jConfirmAction( {
    question : "Are you sure you want to delete the selected row?", 
    yesAnswer : "Yes", 
    cancelAnswer : "No", 
    onYes: function(evt) { 
      contentpages(evt.target); 
    }
});
</code></pre>

<p>Unless its on this page:</p>

<pre><code> /*
 * jQuery Plugin : jConfirmAction
 * 
 * by Hidayat Sagita
 * http://www.webstuffshare.com
 * Licensed Under GPL version 2 license.
 *
 */
(function($){

jQuery.fn.jConfirmAction = function (options) {
    var theOptions = jQuery.extend( {
        question: "Are You Sure ?",
        yesAnswer: "Yes",
        cancelAnswer: "Cancel",
        questionClass: "question",
        yesClass: "yes",
        cancelClass: "no",
        onYes: function() {}   // for specifying a function to call when the "yes" button is clicked
    }, options );

    return this.each( function() {

        $(this).bind('click', function(e) {
            e.preventDefault();

            if($(this).next('.' + theOptions.questionClass).length &lt;= 0) {
                $(this).after('&lt;div class="' + theOptions.questionClass + '"&gt;'+theOptions.question+'&lt;br/&gt;&lt;span class="' + theOptions.yesClass + '"&gt;'+theOptions.yesAnswer+'&lt;/span&gt;&lt;span class="' + theOptions.cancelClass + '"&gt;'+theOptions.cancelAnswer+'&lt;/span&gt;&lt;/div&gt;');

                $( '.' + theOptions.yesClass ).bind('click', function( evt ) {
                    theOptions.onYes( evt );
                    $(this).parents( '.' + theOptions.questionClass ).fadeOut( 300, function() {
                        $(this).remove();
                    } );
                });

                $( '.' + theOptions.cancelClass ).bind('click', function(){
                    $(this).parents( '.' + theOptions.questionClass ).fadeOut( 300, function() {
                        $(this).remove();
                    } );
                });
            }

            $(this).next( '.' + theOptions.questionClass ).animate( { opacity: 1 }, 300 );
        });

    } );
}

})(jQuery);
</code></pre>
