
Using Behaviors
471
8
If you are validating multiple fields, repeat steps 6 and 7 for any additional
fields that you want to validate.
9
Click OK.
If you are validating multiple fields when the user submits the form, the
onSubmit
event automatically appears in the Events pop-up menu.
10
If you are validating individual fields, check that the default event is
onBlur
or
onChange
.
If it isn’t, select
onBlur
or
onChange
from the pop-up menu. Both of these
events trigger the Validate Form action when the user moves away from the
field. The difference between them is that
onBlur
occurs whether or not the
user has typed in the field, and
onChange
occurs only if the user changed the
contents of the field. The
onBlur
event is preferred when you have specified
that the field is required.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...