Form Events

Form events in jquery can only be used on form elements. Following are the properties of the form event.

Form Blur: .$(selector).blur(function)

The .blur() event is used to lose or blur focus of the specified element when it gets triggered.

Change Event: $(selector).change(function)

The .change() event is used to change the value of the specified element when it gets triggered.

Focus Event: $(selector).focus(function)

The .focus() event is used to focus the specified element when it gets triggered.

Select Event: $(selector).select(function)

The .select() event is triggered when the text in the text input field or in the text area is selected.

Submit Event: $(selector).submit(function)

The .submit() event is executed when the form is submitted. It only works with form elements.



Ask Questions

Ask Question