Cross-Site Scripting: DOM - Fortify

Fortify shows there is Cross-Site Scripting: DOM for the below code snippet of jquery files:

I am getting in both line of code Cross- site scripting:Dom. How to fix this attack?

deleteAccount: function () {

var id = $('#DeleteAccount').val(); //what should i change here to stop Cross- site scripting?

//Few lines of code

var accountName = $.trim($('.display' + id).text());//what should i change here to stop Cross- site scripting?

}