﻿$(function() {
    $(".inputFoo").click(function() {
        $.post("/handlers/add_to_watchlist.ashx", { watchid: $(this).attr("id") }, function(data) {
            if (data == "OK")
                alert('The User was added to Watch List.');
            else alert('Error.');
        });
    });
});