sergeo_89,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function ()
{
$('#search').submit(function()
{
var searchText = $('#textSearch').val();
if(searchText == 'Поиск..' || searchText == '') {
alert('Вы не заполнили поле ввода');
}
else {
globalSearch(searchText);
}
return false;
}
)
function globalSearch(myString) {
var allElements = $('*').not('.block_C');
for (var i = 0; i < allElements.length; i++) {
if($(allElements[i]).text() == myString) {
$('.block_C').prepend('<p>' + myString + '</p>');
}
};
}
}
)
</script>
</head>
<body>
<p>test</p>
<div class="block_C"></div>
<form id="search" method="POST" action="" name="searchform">
<input id="ButtonSearch" type="submit" value="Найти">
<input id="textSearch" type="text" name="search" value="Поиск..">
</form>
</body>
</html>