How to convert .live to .on in jQuery
<p>I want to convert <code>.live</code> to <code>.on</code> method as <code>.live</code> is not used much but I am not able to convert it. Please help me to change it.</p>

<pre><code>$(".delete").live('click', function () {
    var id = $(this).attr('id');
    var b = $(this).parent().parent();
    var dataString = 'id=' + id;
    if (confirm("Sure you want to delete this update?")) {
        $.ajax({
            type: "POST",
            url: "delete.php",
            data: dataString,
            cache: false,
            success: function (e) {
                b.hide();
                e.stopImmediatePropagation();
            }
        });
        return false;
    }
});
</code></pre>
