x
 
1
<!DOCTYPE html>
2
<title>My Example</title>
3
4
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
5
<script>
6
  $( function() {
7
    $( "p" ).click( function() {
8
      $( this ).css( {
9
       "background": "gold",
10
       "font-size": "+=1.5em",
11
       "padding": "+=10" 
12
      } );   
13
    });
14
  });
15
</script>
16
<p>Click me.</p>
17
<p>Using jQuery relative values such as <code>+=1.5em</code> adds that amount to the current value.</p>
18
<p>Clicking the element continuously will result in the value being incremented continuously.</p>