Hi all, i have this code:
$('.access a').toggle(function() {
$('link').attr('href', 'styles/accessstyles.css');
$('body').css('font-size', '16px');
}, function() {
$('link').attr('href', 'styles/styles.css');
$('body').css('font-size', text_sizes[text_current_size] + 'px');
});
It works fine. But how would i programmatically trigger the toggle instead of clicking on it?