Hi guys,
This is probably quite a simple problem but I can’t figure out the answer. I’m working on a site that has news stories and events coming in. What I would like is to have the news stories to be styled with squares and events with discs for instance. I might be able to change the actual plug-in so the CSS affects this change, but I just wondered how I could change the list-style-type with jQuery.
Many thanks!
Jonno
My code is as follows:
<script type=“text/javascript”>
$(‘document’).ready(function () {
$(‘li a[href^=“/newsandevents-1/diaryofevents”]’).css(‘list-style-type’, ‘disc’);
$(‘li a[href^=“/news_and_events-1/news_archive”]’).css(‘list-style-type’, ‘circle’);
});
</script>
[HR][/HR]
<ul>
<!–Events–>
<li><a href=“/newsandevents-1/diaryofevents/generalevents/oct2011/ajazahmed.aspx”>20 Oct: Ajaz Ahmed - the founder of Freeserve.</a></li>
<!–News–>
<li><a href=“/news_and_events-1/news_archive/2011newsarchive/oct/academicappointedtoinnertemple.aspx”>University Law professor appointed to prestigious Inner Temple.</a></li>
</ul>