Hi
I tried some code for your requirement check it once
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Article Post Page</title>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="Scripts/jscolor.js" type="text/javascript"></script>
<script language="javascript">
$(document).ready(function () {
$('#testing1div').html($('#MyTemplate').html());
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="MainScreen" align="center">
<div id="testing1div">
</div>
<script id="MyTemplate" type="text/html">
<div class="roomdetailsBox">
<ul style=" height:200px; overflow-y :scroll;">
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
<li><a href="javascript:alert('testing1');">sdfsd</a></li>
<li><a href="javascript:alert('testing2');">sdfsdf</a></li>
<li><a href="javascript:alert('testing3');">sdfsdf</a></li>
</ul>
</div>
</script>
</div>
</form>
</body>
</html>
I hope you understood what I did
All the Best