How do I toggle CSS with jQuery?
- by marcamillion
I have the following code:
$('#bc' + $.trim($this) + ' span.dashed-circle').css({ 'border' : '5px solid #000'});
That is triggered by a click.function().
I would like that to be a toggle - so when I click the element, it changes the border to what I have above...but when it is clicked again it disappears or rather sets the border to ' '.
…