Marker,
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div id="container" >
Lets try contains Function.<br><br>
<input id="contains"><button id="cont">search</button>
</div>
<script type="text/javascript">
$('#cont').click(function() {
var a = $('input').val();
if($("div:contains('"+a+"')").length) {
alert("Found");
};
});
</script>
</body>
</html>