CSS I set by JQuery changes to nothing after page loads

CSS I set by JQuery changes to nothing after page loads

Hi,

I am using JQuery to add a css class to a LI. when I click on LI, it initially changes to the style I want it but it quickly goes back to how it was because when page loads, the element loses the css class JQuery has just added.


This is my JQuery:

$(document).preload(
$(function() {
$('#tabs li a').click(function() {
$('#tabs li a').removeClass('current');
$(this).addClass('current');
})
})
);


Any help will be very much appreciated,
E