kristi14, вот пример тестового примера...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<!--
<script src='https://code.jquery.com/jquery-latest.js'></script>
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
-->
<style type='text/css'>
table {
width: 100px;
height: 100px;
}
td {
text-align: center;
cursor: pointer;
border: 1px solid
}
</style>
<script type='text/javascript'>
document.addEventListener('DOMContentLoaded',function(){
document.querySelector('#test td').addEventListener('click',function userSort(){
var txt=this.querySelector('button').value
alert(txt);
});
});
</script>
</head>
<body>
<table id='test'>
<td><button class="delord" value="orderid='.$idorderes.'&prodid='.$productid.'">удалить</button></td>
</table>
</body>
</html>