JSFiddle - React, Tailwind, and code Playground

HTML

<div class="form-group col-md-4 episode-next">
					<button class="btn btn-secondary" data-next="1">Следующая серия</button>
				</div>

JavaScript

$(document).on('click', '.episode-next button', function(e) {
	e.preventDefault();
	var next = $(this).data('next');

	if (next == $('select.episodes option:last').attr('value')) {

	} else {
    next = parseInt(next) + 1;
		//$(this).attr('data-next', next).text(next);
    $(this).data('next', next).text(next);
	}
	console.log('___'+next);
});