diff options
Diffstat (limited to 'usth/ICT3.2/prac/3/3.html')
-rw-r--r-- | usth/ICT3.2/prac/3/3.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/usth/ICT3.2/prac/3/3.html b/usth/ICT3.2/prac/3/3.html new file mode 100644 index 0000000..4a6b76f --- /dev/null +++ b/usth/ICT3.2/prac/3/3.html @@ -0,0 +1,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> |