about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/3/3.html
blob: 4a6b76ffc35925c34652e0f3e8972379ef7b615e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<html>
<script src='https://code.jquery.com/jquery-3.5.1.min.js'
        integrity='sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0='
        crossorigin='anonymous'></script>

<body>
  <form>
    <input id='field1' type='text' value='Field 1'>
    <input id='field2' type='text' value='Field 2'>
  </form>
  <script>
    $('#field1').blur((e) => $('body').css('background-color', '#436e58'))
  </script>
</body>
</html>