<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" language="javascript">
$(function() {
$('#btn1').click(function() {
alert('test');
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="btn1" type="button" value="Click Me!" runat="server" />
</div>
</form>
</body>
</html>
I have tested this html.... It's working fine... There is no issue by adding runat=server or not...