Assuming your sample list is a list ol, the following will do the trick.
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js" />
<script type="text/javascript">
$(document).ready(function () {
$("ol li").each(function (index) {
$(this).wrapInner("<span />");
});
$("ol").css("font-weight", "bold");
$("ol li span").css("font-weight", "normal");
}
);
</script>
</head>
<body>
<ol>
<li>first element</li>
<li>secondelement</li>
<li>thirdelement</li>
</ol>
</body>
</html>
source
share