jquery text selector code example
Example 1: jquery find by innertext
$( "div:contains('innerText')" );
Example 2: store the text from a form jquery
$('form').submit(function(e) {
e.preventDefault();
var input = $('#search').val();
$('p').append(input);
});