olegalimov,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.checkboxes_on{background:#9acd32;}
.doman_name{
cursor: pointer;border-radius: 5px; padding: 6px 12px;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(function() {
var a = $(".doman_name"),
c = $("input", a);
a.on("click", function(a) {
var b = $("input", this)[0];
a.target != b && (b.checked = !b.checked);
$(this).toggleClass("checkboxes_on", b.checked)
});
$('[name="checkAll"],[name="uncheckAll"]').on("click", function() {
c.prop({checked: !+this.value}).click()
})
});
</script>
</head>
<body>
<div class="button_table">
<p><span class="but_fon"><button class="button_2" type="button" name="checkAll" value="1">Выбрать все</button></span><span class="but_fon"><button class="button_2" type="button" name="uncheckAll" value="0">Снять все</button></span><span class="but_fon"><button class="button_2" type="button" onclick="window.open('http://panel.webvm.ru/OFFERTA/offerta_add_select_type.khtml','_blank')">Заказать домен</button></span><span class="but_fon"><button style="display:none" class="button_2" type="button" name="clear_res">Очистить результаты</button></span>
</p>
</p>
</div>
</td>
</tr>
<tr>
<td>
<table class="table-fon">
<tr class="table_string">
<div class="table_cell-1">
<p><span class="doman_name"><input type="checkbox" name="TLDomain" value="ru" id="ru"/>.
<span>ru</span></span></p>
<div><p itemprop="price">100 RUB</p></div>
<div class="domen_next">Продление 100 RUB<br/></div></div>
<div class="table_cell-1">
<p><span class="doman_name"><input type="checkbox" name="TLDomain" value="рф" id="rf"/>.
<span>рф</span></span></p>
<div><p itemprop="price">100 RUB</p></div>
<div class="domen_next">Продление 180 RUB<br/></div></div>
</body>
</html>