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')) {
		//$('.episode-next').fadeOut(300);
	} else {
		//$('.episode-next').fadeIn().show();
    next = parseInt(next) + 1;
		$(this).attr('data-next', next).text(next);
	}
	console.log('___'+next);
});