Змінити CSS

$(document).ready(function() {

$('.buttons:contains("1")').css('background', 'green');

});

<button class="buttons">Кнопка1</button>