Is there a way to keep track of javascript hits?

Posted by user54197 on Stack Overflow See other posts from Stack Overflow or by user54197
Published on 2010-06-02T19:22:55Z Indexed on 2010/06/02 20:14 UTC
Read the original article Hit count: 141

Filed under:
|
|
|

I am populating a table based on a javascript function. I want to limit the data entered to 2, afterwhich I hide the table. Is there a way to track how many hits the javascript code gets hit?

function addNewRow() {
    $('#displayInjuryTable tr:last').after('<tr><td style="font-size:smaller;" class="name"></td><td style="font-size:smaller;" class="address"></td></tr>');
    var $tr = $('#displayInjuryTable tr:last');
    var propertyCondition = $('#txtInjuryAddress').val();


    $tr.find('.name').text($('#txtInjuryName').val());
    if (propertyCondition != "") {
        $tr.find('.address').text($('#txtInjuryAddress').val() + ', ' + $('#txtInjuryCity').val() + ' ' + $('#txtInjuryState').val() + ' ' + $('#txtInjuryZip').val());
 }

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET