$(document).ready(function () {
$("-sharpsearch").click(function () {
var index = $.trim($("-sharpsearch_text").val().toString());
$("li:contains("" + index + "")").show();
});
});
as shown above, my goal is to perform front-end search after clicking the button, so how do I count the number of matches now?
$("li:contains ("" + index + ")"). Lenth; intended to write like this, but failed