<li class="resultsTitle left"><span>Total Results </span><span id="totalResults" class="bold">@totals.TotalResults.ToString("N0")</span></li>
<li class="resultsTitle left"><span>Company Results </span><span id="companyResults" class="bold">@totals.CompanyCount.ToString("N0")</span></li>
$(document).ready(function () {
$("#companyResults").click(function () {
alert('hello world');
});
$("#totalResults").click(function () {
alert('hello world');
});
});
我们尝试了一些方法来捕获点击事件。我们做错了什么吗?