A script that sums up two textbox values using jQuery. **Note that I am not using any validation for textbox values.
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var textBox1 = $('input:text[id$=TextBox1]').keyup(foo);
...