там просто есть
<input type="text" name="question" placeholder="Вопрос">
и через keyup, получаю значение var val = question + '[^a]*$';
$(function() {
$('input[name=question]').keyup(function() {
console.log('keyup()');
var question = $('input[name=question]').val();
console.log('question - ' + question);
$('.question').each(function(k, v) {
//console.log('value - ' + $(this).text().toString());
var val = question + '[^a]*$';
var re = new RegExp(val, 'i');
if (re.test($(this).text()) ) {
console.log('This ok - ' + $(this).text());
};
});
});
});