Model:
function delete_exchange($ExchangeRateId) { $this -> db -> where(\'ExchangeRateId\', $ExchangeRateId); $this -> db ->
Do like this in your view..
delete function deletechecked() { if(confirm("Delete selected messages ?")) { return true; } else { return false; } }