Hello, I have this html code that i want to edit with jQuery. Here is the html.
<html>
<head>
<title>JQuery Problem 1</title>
<script type="text/javascript" src="jquery-1.4.min.js"></script>
<script type="text/javascript" src="problem1.js"></script>
</head>
<body>
<ol>
<li>Comp 250
<ul>
<li>HTML</li>
<li>CSS</li>
<li>CGI</li>
<li>PHP</li>
<li>JavaScript</li>
</ul>
</li>
<li>Comp 345
<ul>
<li>Objects and classes</li>
<li>Static and constant members</li>
<li>Operator overloading</li>
<li>Templates</li>
<li>Inheritance</li>
<li>Polymorphism</li>
</ul>
</li>
<li>Comp 431
<ul>
<li>Perl language</li>
<li>File uploads and downloads</li>
<li>AJAX and JSON</li>
<li>Java Servlets</li>
<li>JSP</li>
</ul>
</li>
</ol>
</body>
</html>
What i want to do is to edit, the list tags of the Ol list. So the tags i want to edit is
<li>Comp 250
<li> Comp 345
<li> Comp 431
this is how i want them to be
<li style="margin: 1em; font-weight: bold">Comp 250
<li style="margin: 1em; font-weight: bold">Comp 245
<li style="margin: 1em; font-weight: bold">Comp 431