Hi,
Here I'm providing some for your requirement
just check this once
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script language ="javascript" >
$(document).ready(function (evt) {
});
function f1(tid) {
alert(tid.value);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="text" id="txtname" onkeyup="f1()" />
<br />
<select name="DropDownList1" id="DropDownList1" onchange="f1(this)">
<option value="dfgdfg">fdgdfgdf</option>
<option value="dfgdfgdfgdfdfg">fdgddfgdfgfgdf</option>
<option value="dfgdfgdfgdfgdfggdfg">fdgdfgdfgdfgdfgdf</option>
</select>
</div>
</form>
</body>
</html>
All the Best