$(document).ready(function (e) { $('#submit').click(function (e) { try { var $inputTxt = $('#search'); result = $inputTxt.val(); alert(result); var d = $('h4'); alert("load html"); for (var i = 0; i < d.length; i++) { alert(d.length); alert($('h4').html()); alert($d[i].html().textContext); } if (d == result) { alert("result found"); } alert("got to end"); } catch (ex) { e.preventDefault(); } });
$('h4').each(function(index) { alert(index + ': ' + $(this).text()); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)