Pass template content variable to javascript

On a template, I have

{% trans "Deletion Confirmation" as del_title %}
<a id="deleteSelectedBtn" class="btn">Delete Selected</a>

and have javascript code as below

$(document).ready(function() {
    $('#deleteSelectedBtn').click(function() {
        // How to get value of "del_title" from the template to here?
    });
});

See the json_script tag for the appropriate way for passing data from Django to a JavaScript script.
You might want to call that trans function in the view to get the value, and then render the value in the json_script tag.

This worked. Thanks Ken!